On 22 Feb 2005, at 21:43, Bruno Bronosky wrote:
In BBEdit I used to use a script like this: Save and Refresh Safari.scpt tell application "BBEdit" save window 1 end tell
tell application "Safari" do JavaScript "location.reload()" end tell
But that stopped working with one of the updates to OS X. I would like to see an AppleScript that would check to see if the current file's URI was open in any Safari window or tab. If so bring it to the front and refresh, else open a new tab with the URI.
Any ideas? I can't be the first person to try this.
Bruno & others,
I did some commands a few months ago, that does some of the things you'd need. Doesn't deal with Safari/Firefox tabs, as they are not AppleScriptable so we can't reach them. Unless someone knows better this is the best we can do at the moment. :(
Kind regards,
Mats
---- "TextMate, coding with an incredible sense of joy and ease" - www.macromates.com -