• 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: scripting Xcode to import images
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scripting Xcode to import images


  • Subject: Re: scripting Xcode to import images
  • From: Shane Stanley <email@hidden>
  • Date: Thu, 09 Apr 2015 09:09:41 +1000

On 9 Apr 2015, at 2:53 am, 2551 <email@hidden> wrote:

Also, I couldn't figure out how to call these handlers with this syntax

Look up Handlers with Interleaved Parameters in the AppleScript Language Guide. In part:

Also, the call must be explicitly sent to an object, even if the target object is the default, it. For example:
its foo:5 bar:105 --this works
tell it to foo:5 bar:105 --as does this
foo:5 bar:105 --syntax error.
Note: The actual name of an interleaved-parameter handler is all the name parts strung together with underscores, and is equivalent to a handler defined using that name with positional parameters. For example, these two handler declarations are equivalent:

on tableView:t objectValueForTableColumn:c row:r
on tableView_objectValueForTableColumn_row_(t, c, r)
Given a compiled script, AppleScript will automatically translate between the two forms depending on whether or not the current system version supports interleaved parameters.

So you can call this:

on convertASToJSON:someASThing saveTo:posixPath

like this:

its convertASToJSON:someASThing saveTo:posixPath

or this:

convertASToJSON_saveTo_(someASThing, posixPath)

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >scripting Xcode to import images (From: 2551 <email@hidden>)
 >Re: scripting Xcode to import images (From: Shane Stanley <email@hidden>)
 >Re: scripting Xcode to import images (From: 2551 <email@hidden>)

  • Prev by Date: Re: OS 10.2.3 Applescript Editor gone.
  • Next by Date: Re: problems saving pdf
  • Previous by thread: Re: scripting Xcode to import images
  • Next by thread: Re: scripting Xcode to import images
  • Index(es):
    • Date
    • Thread