• 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 17:18:32 -0400

I tried

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)

        log theFiles as text

        set current application's Crowbar2AppDelegate's delegate()'s pathtoPicture to theFiles

        return true -- otherwise it doesn't happen

    end performDragOperation_


end script




and I get the following debugger output:

2011-07-10 17:16:52.068 Crowbar2[35140:903] +[Crowbar2AppDelegate delegate]: unrecognized selector sent to class 0x2006fd1e0

2011-07-10 17:16:52.068 Crowbar2[35140:903] *** -[myImageWellScript performDragOperation:]: +[Crowbar2AppDelegate delegate]: unrecognized selector sent to class 0x2006fd1e0 (error -10000)



-- 
Evan Schoffstall
Sent with Sparrow

On Sunday, July 10, 2011 at 4:29 PM, Antonino Petriliggieri 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: 
 >Passing variables from one script to another (From: Evan Schoffstall <email@hidden>)

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