• 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
get size of available screen fails
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: get size of available screen fails
      • From: Emmanuel <email@hidden>
    • Re: get size of available screen fails
      • From: kai <email@hidden>
    • Re: get size of available screen fails
      • From: Norman Cohen <email@hidden>
  • Prev by Date: Re: How do I delete the 1st three characters from a variable
  • Next by Date: Re: How do I delete the 1st three characters from a variable
  • Previous by thread: [Indesign CS/XML] Find/Replace via tags
  • Next by thread: Re: get size of available screen fails
  • Index(es):
    • Date
    • Thread