• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
App not found action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: App not found action
      • From: Shane Stanley <email@hidden>
    • Re: App not found action
      • From: Emmanuel LEVY <email@hidden>
  • Prev by Date: Re: Xcode Yosemite 10.10.1 cocoa-Applescript iTunes Tell blocks not being called
  • Next by Date: Re: App not found action
  • Previous by thread: Re: I search a script for itunes task tyvm!
  • Next by thread: Re: App not found action
  • Index(es):
    • Date
    • Thread