[TxMt] Web preview is a cool idea but useless?

Mats Persson mats at imediatec.co.uk
Wed Feb 23 21:41:53 UTC 2005


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. :(


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1513 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20050223/3b1ab6f9/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mxBrowsers.tmbundle.zip
Type: application/zip
Size: 7711 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20050223/3b1ab6f9/attachment.zip>
-------------- next part --------------


Kind regards,

Mats

----
"TextMate, coding with an incredible sense of joy and ease"
- www.macromates.com -

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 118 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20050223/3b1ab6f9/attachment-0001.bin>


More information about the textmate mailing list