"execution error: An error of type 5 has occurred. (5)" when trying to launch Firefox using applescript
"execution error: An error of type 5 has occurred. (5)" when trying to launch Firefox using applescript
- Subject: "execution error: An error of type 5 has occurred. (5)" when trying to launch Firefox using applescript
- From: "Sandip Chitale" <email@hidden>
- Date: Sun, 30 Mar 2008 16:56:59 -0700
I have the following applescript in file named launchfirefox.command:
on run argv
launch application "Firefox"
tell application "Firefox"
Get URL item 1 of argv
activate
end tell
end run
I am invoking the script like this:
> osascript launchfirefox.command http://www.google.com
I get the following error if the Firefox is not already running:
launchfirefox.command:16:44: execution error: An error of type 5 has
occurred. (5)
I see that the dock icon of firefox bounces a couple of times.
If the irfox is already running the script works and opens the golge website.
> uname -a
Darwin my-Computer.local 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct
10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386 i386
Firefox version is:
Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.13)
Gecko/20080311 Firefox/2.0.0.13
What could be going on?
thanks,
Sandip
_______________________________________________
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