App not found action
App not found action
- Subject: App not found action
- From: Robert Poland <email@hidden>
- Date: Sun, 23 Nov 2014 14:37:35 -0700
Hi,
The snippets below are meant to run as an app on several computers as a morning startup. Several apps are meant to excluded on “Smaller” computers.
PROBLEM;
On a “Smaller” computer BOINCManager is not installed. So it causes the script to stop, wanting BOINCManager to be found. Why does’t the try block avoid this, how do I avoid this?
tell (do shell script "/usr/sbin/system_profiler SPDisplaysDataType | grep Resolution") to set {screenWidth} to {word 2 as number} -- get screen width of monitor
if screenWidth > 2000 then
set largeMonitor to true
else
set largeMonitor to false
end if
tell application "System Events"
set processlist to name of every process
ignoring application responses
try
if largeMonitor then if "BOINCManager" is not in processlist then launch application "BOINCManager.app"
end try
end ignoring
end tell
TIA,
Robert 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