Re: Timeout Not Working As Expected
Re: Timeout Not Working As Expected
- Subject: Re: Timeout Not Working As Expected
- From: "S. J. Cunningham" <email@hidden>
- Date: Thu, 19 Mar 2015 17:42:01 -0400
On Mar 18, 2015, at 7:05 PM, Shane Stanley wrote:
> On 19 Mar 2015, at 6:06 am, S. J. Cunningham <email@hidden> wrote:
>>
>> Firefox doesn't support Applescript but I discovered that
>>
>> tell application "Firefox" to open location "http://www.yahoo.com"
>>
>> works
>
> "open location" is part of Standard Additions, and will try to open the URL in your chosen browser. So you don't need the "tell" statement (and you won't find it in a browser's scripting dictionary).
I'm sure you are right but riddle me this:
open location "imacros://run/?m=LastPostPreviewClip.iim"
--> An error of type -10814 has occurred
but
tell application "Firefox" to open location"imacros://run/?m=LastPostPreviewClip.iim"
Works fine.
I'm guessing "imacros://" isn't recognized as a url by Applescript but is by Firefox. "http://" url's work as you describe. Thankfully the tell statement works or I'd be up the creek.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden