• 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: How to get Finder and System Events confused
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get Finder and System Events confused


  • Subject: Re: How to get Finder and System Events confused
  • From: John Delacour <email@hidden>
  • Date: Wed, 19 Mar 2003 08:41:12 +0000
  • Mac-eudora-version: 6.0a11

At 6:52 pm -0800 18/3/03, Olof Hellman wrote:

But this fails:

tell application "Finder"
container of file of process 1
end tell
--> Finder got an error: NSCannotCreateScriptCommandError

Usual problem. It ought to work and probably did in OS 7.6.

You need:

tell application "Finder"
container of (get file of process 1)
end tell

-- or

tell application "Finder"
file of process 1
container of result
end tell
_______________________________________________
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.

References: 
 >How to get Finder and System Events confused (From: Olof Hellman <email@hidden>)

  • Prev by Date: Re: Setting Variables to List Items
  • Next by Date: Re: (OT) Creator or Signature?
  • Previous by thread: How to get Finder and System Events confused
  • Next by thread: Re: How to get Finder and System Events confused
  • Index(es):
    • Date
    • Thread