Re: "run script" error from open window
Re: "run script" error from open window
- Subject: Re: "run script" error from open window
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 02 Apr 2002 09:25:40 -0800
On 4/2/02 7:28 AM, "Gnarlodious" <email@hidden> wrote:
>
On 3/22 Entity Paul Berkowitz spoke thus:
>
>
> Welcome to 'run script' and 'load script' in Standard Additions. The way you
>
> want to use it: either giving the alias or file reference (path) of a
>
> compiled script or typing the whole script as string, is 'run script'.
>
>
OK so I am saying:
>
tell application "Finder"
>
activate
>
run script "Apple:Desktop Folder:Called Script"
>
end tell
>
>
which runs compiled script:
>
(simply opens a folder)
>
>
tell application "Finder"
>
activate
>
open folder "Rachel:Chunks:Browsers:" as alias
>
end tell
>
>
but when run from the script window I get error:
>
Finder got an error: Finder got an error: AppleEvent timed out. (-1712)
>
Funny thing the first "Finder" is in red (in Script Debugger)
>
>
The "Called Script" runs by itself, so what am I doing wrong?
>
That isn't an alias reference: it's a string, and it's inside a Finder tell
block, which may also be giving 'run script' problems. Just take it outside
the Finder and try:
run script alias "Apple:Desktop Folder:Called Script"
[BTW, in your script itself, you don't need the 'as alias' if you're using a
Finder object 'folder'. The Finder understands the string path terminology,
I believe:
open folder "Rachel:Chunks:Browsers"
should work OK on its own, unless I'm getting mixed up myself. Outside the
Finder, you need 'alias': string paths won't work on their own unless you
have Akua Sweets or Jon's Commands coercing string to alias in OS 7/8/9;
inside the Finder, use 'file' or 'folder' even if you're using string paths
to specify them. 'alias' will be coerced to file or folder, but file and
folder references are more appreciated by the Finder: and it doesn't need
both at once as you're doing.]
--
Paul Berkowitz
_______________________________________________
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.