• 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: Dock Apps - User apps running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dock Apps - User apps running


  • Subject: Re: Dock Apps - User apps running
  • From: Walter Ian Kaye <email@hidden>
  • Date: Thu, 9 Oct 2003 14:27:04 -0700

At 04:43p -0400 10/09/2003, Paul Skinner didst inscribe upon an electronic papyrus:

On Wednesday, October 8, 2003, at 03:27 PM, Steve Roy wrote:

The 'application process' object should have a property
that we could use to figure out which ones are user controllable.

Steve

That's available from the app's internal plist, if you want to go diving for it. the 'application file' property of the 'application process' will give you to the path.

on Dockable(appPath)
try
set plist to read file ((appPath as text) & ":Contents:Info.plist") as text
set AppleScript's text item delimiters to "<key>NSUIElement</key>"
set userApplication to text item 2 of plist
set AppleScript's text item delimiters to "<string>"
set userApplication to (character 1 of (text item -1 of userApplication)) as number
on error
set userApplication to 0
end try
return not (userApplication as boolean)
end Dockable

Unless it's a binary Carbon app with the plist in a 'plst' resource.
Or a Classic app with no plist of any kind.


-boo
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Dock Apps - User apps running
      • From: Paul Skinner <email@hidden>
References: 
 >Re: Dock Apps - User apps running (From: Paul Skinner <email@hidden>)

  • Prev by Date: Re: trying to GUI script Filemaker
  • Next by Date: Re: trying to GUI script Filemaker
  • Previous by thread: Re: Dock Apps - User apps running
  • Next by thread: Re: Dock Apps - User apps running
  • Index(es):
    • Date
    • Thread