Re: scripting Xcode to import images
Re: scripting Xcode to import images
- Subject: Re: scripting Xcode to import images
- From: Alex Zavatone <email@hidden>
- Date: Tue, 07 Apr 2015 10:25:37 -0400
In addition to Shane's tip (yeah, these are mostly JSON files) I love to explore automating the interface where possible with GUI scripting.
If Shane's approach doesn't work, you could always try enabling and using GUI scripting and these tools to see what's on the screen.
UIBrowser
UIElementInspector
Speaking of GUI scripting, it appears that Apple's gone out of their way in Yosemite to hide it. Anyone know how to turn it on in Yose?
Cheers,
Alex Zavatone
On Apr 7, 2015, at 6:29 AM, 2551 wrote:
> Hi list
>
> I have multipe images that make up some animations (a custom level indicator and a custom timer) which I need to import into my Xcode project's Image Assets Catalog.
>
> I have a script that makes the required images in Illustrator, then exports them. I have another script that sizes each of the exported images for the various resolutions required by Xcode. However, what I don't have is a way to add all these images into the project without laboriously creating dozens of new image sets and dragging each image resolution in by hand.
>
> Does anyone know if it's possible to script this borathon of creating a new image sets in Xcode and importing all the required image sizes into the assets catalog?
>
> Seems like an ideal task for automation, as I'm basically repeating the same process ad nauseam, but I don't see any joy looking at Xcode's AppleScript dictionary.
>
> Any suggestions much appreciated.
>
>
> 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
_______________________________________________
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