Re: osascript(1)
Re: osascript(1)
- Subject: Re: osascript(1)
- From: Philip Aker <email@hidden>
- Date: Sat, 01 Feb 2003 08:45:38 -0800
On Friday, January 31, 2003, at 06:32 PM, Michael Kelly wrote:
Hello all,
I was just playing around with osascript(1), and discovered it throws
an
error whenever I use the "display dialog" function. For instance, if I
have the following in ./finder_dlog:
tell app "Finder"
activate
display dialog "Hello, osascript(1)!"
end
Then run
$ osascript finder_dlog
The Finder activates, then the script terminates and I get the error
execution error: Finder got an error: No user interaction
allowed. (-1713)
...what? Does this mean any kind of user interaction (choose file, etc)
is forbidden with osascript(1)? I checked the manpage, and this wasn't
listed under BUGS. Am I doing something wrong here?
I'm running 10.1.5 with just the devtools that came with the system.
I can't check on 10.1.5 at the moment but your script certainly works
in 10.2.3 if I save the file as a text file. Script Editor wants to
give it the extension ".applescript" but it still works if the
extension is removed. If your text is compiled as an OS X script file
in 10.2.3 it works much faster. Maybe your problem has something to do
with whether or not the script has been stored in the resource fork or
the data fork or that osascript was improved in Jaguar.
Philip Aker
http://www.aker.ca
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.