Fwd: Setting a .plist value?
Fwd: Setting a .plist value?
- Subject: Fwd: Setting a .plist value?
- From: Brian Christmas <email@hidden>
- Date: Sun, 07 Feb 2016 09:00:54 +1100
G’day all
I spoke too soon, in my enthusiasm
When I installed Davids code into my ASObjC project, it fails, the number 3 never gets spoken.
Any thoughts as to required edits please?
I’ve wrapped in a ‘tell application “Finder”, and removed the ‘list 1’, but no success.
Regards
Santa
on installDockItemsTest() tell application "System Events" set t to "" tell process "Dock" say 2 try set t to (title of UI elements of list 1) say 3 end try set tt to "Mail Manager" is in t say 4 return tt end tell end tell end installDockItemsTest
Subject: Re: Setting a .plist value?
Date: 7 February 2016 at 8:25:09 AM AEDT
G’day David, and thank you, thank you, thank you.
Your script returns ‘Mail Manager’ when there icon actually exists, and ‘missing value’ when it's dragged off, and a 'ghost’ remains.
Very elegant!
Regards
Santa
On 7 Feb 2016, at 7:25 AM, David Gregg < email@hidden> wrote: on getDockItems() tell application "System Events" tell process "Dock" return title of UI elements of list 1 end tell end tell end getDockItems
|
_______________________________________________
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