non-existant app
non-existant app
- Subject: non-existant app
- From: Robert Poland <email@hidden>
- Date: Sun, 31 Jan 2010 14:36:44 -0700
Scripters,
On this shortened script, if the machine does not have Dreamweaver is there a better way to avoid the script hunting for a non-existant app?
on run main() beep end run
on main() -- newL - left border, newT - top border set newL to 20 set newT to 22 set wd to 800 set ht to 1000 tell (do shell script "/usr/sbin/system_profiler SPDisplaysDataType | grep Resolution") to set {newR, newB} to {word 2 as number, word 4 as number} -- get screen size for monitor
set x to (info for (path to frontmost application))'s short name
if x = "" then beep return end if
if x contains "Dreamweaver" then try tell application "Dreamweaver" -- window 1- CSS & Files set newL to 1080 set bounds of window 1 to {newL, newT, newR, newB} end tell end try beep return end if
end main
Bob Poland - Fort Collins, CO
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden