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

How to get Finder and System Events confused


  • Subject: How to get Finder and System Events confused
  • From: Olof Hellman <email@hidden>
  • Date: Tue, 18 Mar 2003 18:52:47 -0800

Under OS X, 10.2.4, This succeeds:

tell application "Finder"
set frontProcessFile to (file of process 1)
container of frontProcessFile
end tell
--> folder "CoreServices" of folder "Library" of folder "System" of startup disk of application "Finder"


But this fails:

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

Apparently, Finder forwards events about processes to SystemEvents, but SystemEvents isn't smart enough to ask Finder to help when accessing the container property.

Broke about a dozen of my scripts. Filed under Apple Problem ID # 3202161

- Olof

Olof Hellman
Creo Inc.
Imagine Create Believe
_______________________________________________
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.

  • Follow-Ups:
    • Re: How to get Finder and System Events confused
      • From: Emmanuel <email@hidden>
    • Re: How to get Finder and System Events confused
      • From: John Delacour <email@hidden>
  • Prev by Date: Re: Choose location dialog - view as html
  • Next by Date: max script size
  • Previous by thread: Re: Active Application -Smile-
  • Next by thread: Re: How to get Finder and System Events confused
  • Index(es):
    • Date
    • Thread