• 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
Fwd: Setting a .plist value?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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





Begin forwarded message:

From: Brian Christmas <email@hidden>
Subject: Re: Setting a .plist value?
Date: 7 February 2016 at 8:25:09 AM AEDT
To: David Gregg <email@hidden>, Applescript Users <email@hidden>

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

  • Follow-Ups:
    • Re: Setting a .plist value?
      • From: David Gregg <email@hidden>
References: 
 >Re: Setting a .plist value? (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: Setting a .plist value?
  • Next by Date: Re: Setting a .plist value?
  • Previous by thread: Re: Setting a .plist value?
  • Next by thread: Re: Setting a .plist value?
  • Index(es):
    • Date
    • Thread