Re: Passing variables from one script to another
Re: Passing variables from one script to another
- Subject: Re: Passing variables from one script to another
- From: Shane Stanley <email@hidden>
- Date: Mon, 11 Jul 2011 09:25:31 +1000
- Thread-topic: Passing variables from one script to another
On 11/7/11 6:07 AM, "Evan Schoffstall" <email@hidden> wrote:
> I want the variable theFiles to be sent to myAppDelegate.
I presume you mean you want a property in the AppDelegate to be set to the
same value. So set up a property in the app delegate, let's assume also
called theFiles, and use something like this:
on performDragOperation_(sender)
-- Get the file path
set pb to sender's draggingPasteboard()
set theFiles to pb's propertyListForType_("NSFilenamesPboardType")
tell current application's NSApp's delegate() to setTheFiles_(theFiles)
...
--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden