• 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: Evan Schoffstall <email@hidden>
  • Date: Sun, 10 Jul 2011 23:01:16 -0400

Thanks! I was stupidly using my application name instead of "NSApp"
Now how do get the variable from setPicturePath_(pathtoPicture) sent to another method indirectly?

I have another method named

createNewEntryWiththeThing_andotherThing_(theThing, otherThing)

inside the same script and do not want to pass pathtoPicture directly like 

myAppAppDelegate's createNewEntryWiththeThing_andotherThing_(theThing, otherThing, pathToPicture)

I want to do something along the lines of

set pathtoPicture to setPicturePath_()'s pathtoPicture

However this is an invalid way to call it for setPicturePath_() should contain pathtoPicture and therefore if I do

set pathtoPicture to setPicturePath_("I eat cake")'s pathtoPicture

pathtoPicture would equal "I eat cake" and not what performDragOperation_(sender) set it as.


Quite a mouthful and a dilemma as you see..

Any help would be much appreciated!


-- 
Evan Schoffstall
Sent with Sparrow

On Sunday, July 10, 2011 at 7:25 PM, Shane Stanley wrote:


 _______________________________________________
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

References: 
 >Re: Passing variables from one script to another (From: Shane Stanley <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