• 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: 2551 <email@hidden>
  • Date: Wed, 08 Apr 2015 23:53:38 +0700

Should anyone still be following along with the original question and answer...


On 7 Apr 2015, at 18:36, Shane Stanley <email@hidden> wrote:

Pass a sample Contents.json file to the first



Other way round from the way you posted them. 

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

on convertASToJSON:someASThing saveTo:posixPath

to

on convertASToJSON(someASThing, posixPath)

and this

on convertJSONToAS:jsonStringOrPath isPath:isPath


became this

on convertJSONToAS(jsonStringOrPath, isPath)

Then the whole thing worked nicely. Oh, and folks at home, of course don't forget to add 

use scripting additions


at the top of your script if you plan on using anything like "choose folder" or "display dialog"

Now I need to cobble my 3 scripts together into a little Cocoa GUI wrapper so I can create the iconsets, rename them, move them and create the json files all in one go. 

At the moment, its' a bit of a "death by dialog box" affair, but it still saved me loads of time than doing it by hand.

Thanks again.


Best


Phil


 _______________________________________________
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

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

  • Prev by Date: Re: scripting Xcode to import images
  • Next by Date: Re: passing a list to FMPro from Mail
  • Previous by thread: Re: scripting Xcode to import images
  • Next by thread: Re: scripting Xcode to import images
  • Index(es):
    • Date
    • Thread