Hi Forum,
I have this problem:
after I execute one ‘read’ of window bounds i can’t execute any set bounds command in the Finder anymore until i restart the Finder:
- Script
tell Application "Finder"
get bounds of first window
end
- Script
tell Application "Finder"
set bounds of first window to {50, 50, 300, 300}
-- set properties of first window to {bounds:{50, 50, 300, 300}} -- has the same result
end tell
When I run script 2 after script 1 it results a ‘Parameter error’,
when i restart the finder and run only script 2 it works regardlessly.
I Googled and got one older hit at macosxhints.com describing the same phenomenon - but without solution: http://forums.macosxhints.com/archive/index.php/t-12891.html
I suspect the problems might have begun when I ran a script which tried to set the bounds of a finder window to an illegal value.
Anybody an idea how to fix this? Is it a known problem - maybe a bug in AS?
Many thanks for your help in advance.
Dominik
(I’m running OS X 10.4.4 - AppleScript 1.10.3)