get size of available screen fails
get size of available screen fails
- Subject: get size of available screen fails
- From: Robert Poland <email@hidden>
- Date: Tue, 3 Jan 2006 18:31:01 -0700
Hi,
For some reason the following seems to have quit working, It
generates an error, "Can't set text item delimiters to
"<key>Width</key>". It has been working for ages. No recent changes
that I remember. I have tried restarting Smile and re-launching the
Finder.
Any Ideas?
Tia,
-- get size of available screen
set l to {}
set p to read file ((path to "pref" from local domain as
Unicode text) & "com.apple.windowserver.plist")
repeat with v in {"Width", "Height"}
set text item delimiters to "<key>" & v & "</key>"
set l's end to middle word of paragraph 2 of p's text
item 2 as integer
end repeat
set text item delimiters to {""}
set topLimit to 44 -- top edge
set leftLimit to 1 -- left edge
set rightLimit to (text item 1 of l) as number -- actual size of screen
set bottomLimit to (text item 2 of l) as number -- actual
size of screen
--
Bob Poland - Fort Collins, CO
http://www.ibrb.org/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden