Re: On open handler in conflict with on launched?
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
|
_______________________________________________
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