ITunes Application Loader - Automation

Since then, Apple has changed the interface of iTunes Connect, and people need to download applications using the Application Loader.

This is good, but I need a script to automate my work.

How can I automate an application like App Loader?

I was thinking of something written in AppleScript ... but I don't know what actions it provides (if any). Found somewhere that I could also create graphical scripts from AppleScript, but I cannot find documents on this.

What I need ... a way to trigger input actions (mouse clicks / keyboard input) and read text from various displayed controls.

If possible in Python / Ruby, that would be great, but AppleScript is fine.

OS X - version 10.6.4.

Any suggestions are welcome.

Thanks,

+6
scripting itunesconnect applescript macos
source share
2 answers

The application loader documentation mentions an altul that can be used for this purpose. ( https://itunesconnect.apple.com/docs/UsingApplicationLoader.pdf )

Relevant Information:

You can use the altool command-line tool, Application Loaders to check and load application binaries into the Store app.

To test your build before loading or to automate the actual loading of the built-in App Store, you can enable the altul in your continuous integration systems. altool is in the application Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Versions/A/Support/ folder. (Thus, the full path is /Applications/Xcode.app/Contents/Applications/Application \ Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Support/altool)

To start altool, specify one of the following values โ€‹โ€‹on the command line:

$ altool --validate-app -f file -u username [-p password] [--output-format xml]

$ altool --upload-app -f -u -u username [-p password] [--output-format xml]

Where:

- validate-app Indicates that you want to validate the specified application.

- upload-app Indicates that you want to download the specified application. Specify the path and file name for the application that you are checking or downloading. -f file

-u username Specifies your username.

-p password Specifies the password for the user.

- output format [xml | normal] Indicates that you want the Application Loader to return the result in a structured XML format or unstructured text format. By default, Application Loader returns text output.

+17
source share

To see which Applescript commands support any application, you need to take a look at the dictionary for the application. From my answer to a similar question published just the other day :

To switch to applying the Dictionary in the Applescript editor, go to File> Open Dictionary ... A list of all the applications that the OS knows supports Applescript, but the OS will not catch them all so you can use the Browse button. If the application does not support Applescript, it will not be selected in the dialog box.

The caveat is that there are certain commands that the application must support, but this is not the case, or the application can only support the minimum requirements. All of them are very, very simple, like open, abandoned, etc. Your mileage may vary.

Information to get started with the graphical GUI can be found on the OS X Automation website . GUI Scripting is a fun way to go, and I donโ€™t think you can get the values โ€‹โ€‹of the on-screen controls, but just set them. You should only do this if no other prospectus is working.

If you want to stick with Python, you can look at py-appscript , but that still depends on Applescript application support.

+2
source share

All Articles