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
|