Re: AppleScript with invalid file name
Re: AppleScript with invalid file name
- Subject: Re: AppleScript with invalid file name
- From: "James J. Merkel" <email@hidden>
- Date: Sat, 3 Jul 2004 22:35:32 -0700
Ok, I figured something out about my previous question on opening a
file with an AppleScript.
Apparently, if an application is launched from AppleScript and an Open
command is sent, the default Open command in NSCoreSuite is used. In
other words, in this case, the code in my delegate method isn't even
called. I verified this by commenting out my code, and a valid file can
still be opened. I'm not sure how this works, but it does. On the other
hand if the application is already open (and it wasn't opened via a
script), then the code in my delegate method is used when an Open
command is sent from a script.
Jim Merkel
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.