• 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: On open handler in conflict with on launched?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: On open handler in conflict with on launched?


  • Subject: Re: On open handler in conflict with on launched?
  • From: Philip Aker <email@hidden>
  • Date: Thu, 24 Apr 2008 17:03:44 -0700

On 08-04-24, at 08:48, Ola Ingvarsson wrote:

I've create an applescript application with Xcode. Now I want to be able to drop xml-files on it and process them. I've added a document type under properties in Target Info. The icon of my application turns dark when I hold a file over it and it starts when i drop the file on it but my on open-handler won't trigger. Is it possible that there's a conflict between the on open-handler and the on launched-handler?

In document-based AppleScript Studio projects your data handlers will normally be in the file "Document.applescript". There you will see the stubs:

on data representation theObject of type ofType
(*Return the data that is to be stored in your document here.*)
end data representation

on load data representation theObject of type ofType with data theData
(* theData contains the data that was stored in your document that you provided in the "data representation" event handler.
Return "true" if this was successful, or false if not.*)
return true
end load data representation


Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

Sent from my SE/30


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >On open handler in conflict with on launched? (From: Ola Ingvarsson <email@hidden>)

  • Prev by Date: Re: Initialization/Deallocation Methods Not Being Called on an NSOpenGLView-derived Class
  • Next by Date: Re: File has been changed by another application
  • Previous by thread: Re: On open handler in conflict with on launched?
  • Next by thread: Initialization/Deallocation Methods Not Being Called on an NSOpenGLView-derived Class
  • Index(es):
    • Date
    • Thread