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