• 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: Passing variables from one script to another
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Passing variables from one script to another
      • From: Evan Schoffstall <email@hidden>
    • Re: Passing variables from one script to another
      • From: Evan Schoffstall <email@hidden>
References: 
 >Passing variables from one script to another (From: Evan Schoffstall <email@hidden>)

  • Prev by Date: Re: Passing variables from one script to another
  • Next by Date: Re: Passing variables from one script to another
  • Previous by thread: Re: Passing variables from one script to another
  • Next by thread: Re: Passing variables from one script to another
  • Index(es):
    • Date
    • Thread