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: Evan Schoffstall <email@hidden>
- Date: Sun, 10 Jul 2011 23:25:03 -0400
Okay Scratch my last email. I apologize if any of you read it in-between the time I sent it about 25 minutes ago.
I am still getting a missing value for pathtoPicture with the following code
script mainWhatever
property parent : class "NSObject"
property pathtoPicture : missing value
on start()
log pathtoPicture --returns missing value
end start
end script
script myImageWellScript
property parent : class "NSImageView"
on performDragOperation_(sender)
-- Get the file path
set pb to sender's draggingPasteboard()
set theFiles to pb's propertyListForType_("NSFilenamesPboardType")
set filePath to item 1 of (theFiles as list)
tell current application's NSApp's delegate() to setPathtoPicture_(theFiles)
return true -- otherwise it doesn't happen
end performDragOperation_
end script
--
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