Bug in iTunes AppleScript Implementation? (bounds of window)
Bug in iTunes AppleScript Implementation? (bounds of window)
- Subject: Bug in iTunes AppleScript Implementation? (bounds of window)
- From: David Crowe <email@hidden>
- Date: Thu, 10 Apr 2003 09:08:10 -0600
iTunes (3.0.1) appears to have an AppleScript bug. You cannot always
changes multiple bounds of the window at the same time. As far as I
can tell, the following do not work:
Changing all four bounds
Changing left and right at the same time
Changing top and bottom at the same time
Other combinations appear to work.
Funnily enough all combinations of changing 3 bounds appear to work.
The script I used to test was (note that 1=Left,2=Top,3=R,4=B):
tell application "iTunes"
activate
display dialog "Bounds to change?" default answer ""
set TheResponse to text returned of the result
set WB to bounds of window 1
if TheResponse contains "1" then set item 1 of WB to (item 1
of WB) + 50
if TheResponse contains "2" then set item 2 of WB to (item 2
of WB) + 50
if TheResponse contains "3" then set item 3 of WB to (item 3
of WB) + 50
if TheResponse contains "4" then set item 4 of WB to (item 4
of WB) + 50
set bounds of window 1 to WB
end tell
- David Crowe
_______________________________________________
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.