tell application ...CS3 or ...CS4
How to achieve that?
Thanks
iMac Intel Core 2 Duo 2.16 GHz (late 2006), Mac OS X (10.5.1), Memory: 3 GB - L2 Cache: 4 MB - Bus Speed: 667 MHz
iMac Intel Core 2 Duo 2.16 GHz (late 2006), Mac OS X (10.5.1), Memory: 3 GB - L2 Cache: 4 MB - Bus Speed: 667 MHz
set appIdentifier to "com.adobe.Photoshop"
using terms from "Adobe Photoshop CS4" -- an application on your machine
tell application id appIdentifier
activate
do javascript JavaScript show debugger on runtime error
end tell
end using terms from
tell application "Finder"
set Option1_ to ((path to applications folder as Unicode text) ¬
& "Adobe Photoshop_CS3")
set Option2_ to ((path to applications folder as Unicode text) ¬
& "Adobe Photoshop_CS4")
if exists application file Option1_ then
set AppNameVer_ to "Adobe Photoshop_CS3"
else if exists application file Option2_ then
set AppNameVer_ to "Adobe Photoshop_CS4"
else
set AP_ to name of every folder of folder ¬
(path to applications folder as Unicode text) ¬
whose name contains "Adobe Photoshop"
end if
set Option3_ to ((path to applications folder as Unicode text) ¬
& item 1 of AP_ & "Adobe Photoshop_CS3")
set Option4_ to ((path to applications folder as Unicode text) ¬
& item 1 of AP_ & "Adobe Photoshop_CS4")
if exists application file Option3_ then
set AppNameVer_ to "Adobe Photoshop_CS3"
else if exists application file Option4_ then
set AppNameVer_ to "Adobe Photoshop_CS4"
end if
end tell
tell application ...CS3 or ...CS4