• 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
Re: AppleScript to reflect status in dock icon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript to reflect status in dock icon


  • Subject: Re: AppleScript to reflect status in dock icon
  • From: Håvard Graudo <email@hidden>
  • Date: Fri, 13 Jun 2008 16:43:08 +0200

Den 10. jun. 2008 kl. 10.44 skrev Skeeve:
Or is there a way to check for the existence of an OSAX? Or do try blocks help, should the OSAX not be available? I never used an OSAX so I'm
asking.


I usually do something like the below example. I think it is easier than to check for existance of files (that could be in several places; library, user library, embedded)

Unfortunatly very few OSAXen has a command for version number check, with Appearance OSAX as an exception.
Wish more OSAXen could include this.


version of Appearance OSAX
--> 3.1

Håvard




my sjekkOSAXen()


on sjekkOSAXen()
set missingOSAXen to ""

try
encode email address "email@hidden"
on error
set missingOSAXen to missingOSAXen & return & "XMail"
end try

try
convert to Mac "test"
on error
set missingOSAXen to missingOSAXen & return & "Satimage OSAX"
end try

try
register Appearance OSAX
on error
set missingOSAXen to missingOSAXen & return & "Appearance OSAXen"
end try

if missingOSAXen ≠ "" then
display dialog "The following OSACen are required to run this script: " & missingOSAXen with icon 0
error number -128
end if
end sjekkOSAXen







_______________________________________________ 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
References: 
 >AppleScript to reflect status in dock icon (From: Skeeve <email@hidden>)
 >Re: AppleScript to reflect status in dock icon (From: Tim Mansour <email@hidden>)
 >Re: AppleScript to reflect status in dock icon (From: Skeeve <email@hidden>)

  • Prev by Date: Re: Error -1700
  • Next by Date: Re: Error -1700
  • Previous by thread: Re: AppleScript to reflect status in dock icon
  • Next by thread: Re: AppleScript to reflect status in dock icon
  • Index(es):
    • Date
    • Thread