• 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
Re: Safari windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Safari windows


  • Subject: Re: Safari windows
  • From: Craig Sutherland <email@hidden>
  • Date: Fri, 9 Jan 2004 06:51:18 -0600

Walter,

Safari got an error:
NSCannotCreateScriptCommandError

This line in the script was highlighted:
set bounds of window 1 to {newL, newT, wd + newL, ht + newT}

10.3.2 Safari 1.1.1 (v100.1)

Craig Sutherland
On Jan 9, 2004, at 6:26 AM, Walter Ian Kaye wrote:
property default_pos_str : "0, 22"

display dialog "Move Safari window to:" default answer default_pos_str
set {newL, newT} to {word 1, word 2} of text returned of result

tell application "Safari"
set oldBounds to bounds of window 1
end tell

copy ((item 3 of oldBounds) - (item 1 of oldBounds)) to wd
copy ((item 4 of oldBounds) - (item 2 of oldBounds)) to ht

tell application "Safari"
set bounds of window 1 to {newL, newT, wd + newL, ht + newT}
end tell
Hmm. A Panther user wrote to tell me it doesn't work on his machine.

Could someone with 10.3.2 and Safari 1.1.1 give it a try?
thanks,
-boo
>snip<
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Safari windows (From: Jakub Formanek <email@hidden>)
 >Re: Safari windows (From: Walter Ian Kaye <email@hidden>)
 >Re: Safari windows (From: Walter Ian Kaye <email@hidden>)

  • Prev by Date: Re: How can I display the number of records processed using a thermometer
  • Next by Date: Re: Safari windows
  • Previous by thread: Re: Safari windows
  • Next by thread: Re: Safari windows
  • Index(es):
    • Date
    • Thread