Re: Dock Apps - User apps running
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.