How to get Finder and System Events confused
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.