• 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: AppleScript with invalid file name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: Forwarding to Super
  • Next by Date: Re: Drawing Pixels with NSBezierPath
  • Previous by thread: AppleScript with invalid file name
  • Next by thread: Re: ATSUI, AAT and OpenType
  • Index(es):
    • Date
    • Thread