osx - Applescript (10.6.8). how to start app from user input -


i developing automated test several mac osx apps applescript. app should following.

1.) display dialog shows up, user can type in 1 or more app names want tested example (1.test.app, 2.autotest.app,....)

2.)depending on how many apps names has typed in, apps should start , close consecutively check if working.

so example if user type in apptest1.app, apptest2.app, apptest3.app -> first app starting should apptest1.app , close it, next app should apptest2.app start , close , on.

thank much.

lg,

san

this should trick

tell application "finder"     set thepath path applications folder     set theapps name of every file of thepath     set apps_to_test choose list (theapps) multiple selections allowed end tell  repeat the_app in apps_to_test     tell application the_app         activate         quit saving no     end tell end repeat 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -