Is dock visable [sic] [visible]
Is dock visable [sic] [visible]
- Subject: Is dock visable [sic] [visible]
- From: Dan Feather <email@hidden>
- Date: Sat, 10 Dec 2011 15:55:00 -0600
Robert,
I'm not sure what you intend to do, but the following will indicate
status of "autohide" in the cur_pref variable.
tell application "System Events"
tell dock preferences
set cur_pref to autohide
if cur_pref = false then
set autohide to true
else
set autohide to false
end if
end tell
end tell
If autohide is false, then you KNOW the dock is visible. If it's true,
then it's NOT visible UNLESS the cursor is over its "zone." . . . I
suppose you could query the preferences to get the zone (more or less;
as I suspect that would be a bit dicey with variables such as screen
dimens., etc.) AND then get cursor location.
- Dan
Dan Feather
email@hidden
On Dec 10, 2011, at 2:00 PM, email@hidden
wrote:
From: Robert Poland <email@hidden>
Subject: Is dock visable
To: AppleScript Users <email@hidden>
Hi,
I would like to be able to tell if the Dock is/is not visible.
The best example I have found so far is;
tell application "System Events"
tell dock preferences
get properties
--> returns: {minimize effect:genie, springing delay:1.0, dock
size:0.428571432829, magnification:false, springing:false,
location:bottom, class:dock preferences object, magnification size:
1.0, animate:true, autohide:false}
set properties to {minimize effect:scale, location:right,
autohide:true, magnification:false, magnification size:0.5, dock
size:1.0}
end tell
end tell
But the only item I see is Autohide and that doesn't seem to do the
job.
_______________________________________________
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