I currently using an AppleScript application that launches a website (phpMyAdmin) in Safari. I keep it in my dock for easy access.
What I am looking for
- When clicking on the ASA (AppleScript Application) it opens to the safari page
- When I move to a different window and click the ASA again, it will bring the safari window to the front instead of reopening it in a new window/tab
- If I quit the ASA the safari page will close
- If I X out the tab where the website is, the the ASA will quit
If anyone has any idea how to do this it that would be great!
Best Answer
As other users have noted, the third and fourth bullet points are probably not worth holding on to, as it makes the first two difficult to implement:
After some initial feedback from @user3439894, I removed the
on quit
handler as trying to use the script as a stay-open application prevents item 2 from being effectively implemented.