Re: Another stupid question
Re: Another stupid question
- Subject: Re: Another stupid question
- From: Nelson Byrne <email@hidden>
- Date: Mon, 15 Mar 2004 15:43:52 -0800
On Mar 13, 2004, at 10:00 PM, email@hidden
wrote:
Message: 8
To: email@hidden
From: Nelson Byrne <email@hidden>
Subject: Another stupid question
Date: Sat, 13 Mar 2004 19:16:42 -0800
This script compiles OK on OS 10.3.2 but fails to run:
alias "OSX:Users:rnb:Desktop:Picture 1.pdf"
file "OSX:Users:rnb:Desktop:Picture 1.pdf"
Line 1 works but line 2 gets the error message
"NSCannotCreateScriptCommandError"
What am I doing wrong?
Thanks for your help,
Nelson Byrne
Michelle Steiner solved my problem: use Finder.
The second line in my script was being interpreted as having an
invisible "get" in front of it, as explained in Matt Neuberg's
wonderful AppleScript the Definitive Guide. Since AppleScript knows how
do some things with a file object, but not how to get one, things fell
apart.
Regards,
Nelson Byrne
_______________________________________________
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.