iOS auto-naming startup page tool

Source: Internet
Author: User

A few days ago you made an app template that required a lot of packaging apps. This involves naming the start page. The designer gave the Chinese name. Hey, if you let the design classmate one by one, may also have some trouble. Helpless, himself wrote the use of

AppleScript wrote A tool to share it here.

The main idea is to judge the height of the picture, according to different heights of different names.

iphone4:640*960

iphone5:640*1136

iphone6:750*1334

iphone6p:1242*2208

Set Iphone4_name to "[email protected]" as Stringset iphone5_name to "[email protected]" as Stringset IPhone6_n  Ame to ' [email protected] ' as Stringset iphone6p_name to ' [email protected] ' as Stringset F to choose Foldertell Application "Finder" set All_files to (Files of entire contents of F) as Alias Listend tellrepeat with This_file in All_fi Lestrytell application "Image Events" set This_image to open this_file--extract the value for the metadata Tagtell This_im Ageset the image_height to the value of metadata tag "pixelheight" End tell--purge the open image dataclose This_imageif t He image_height = 960 Thenset The name of This_file to Iphone4_name as Stringelse if the Image_height = 1136 Thenset the N  Ame of This_file to Iphone5_name as Stringelse if the Image_height = 1334 Thenset The name of This_file to Iphone6_name as Stringelse if the Image_height = 2208 Thenset The name of This_file to Iphone6p_name as Stringelsedisplay dialog buttons {"Cancel"} Default button 1end IfEnd Tellon Error error_messagedisplay dialog error_messageend Tryend repeat 

I also played a bag, download it can be used.

Automatically name the startup diagram. zip

iOS auto-naming startup page tool

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.