• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Another stupid question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: finding newest file in a folder
  • Next by Date: Re: finding newest file in a folder
  • Previous by thread: Re: What to do when strings don't match but should?
  • Next by thread: finding newest file in a folder
  • Index(es):
    • Date
    • Thread