Re: Finder Scripting
Re: Finder Scripting
- Subject: Re: Finder Scripting
- From: Emile Schwarz <email@hidden>
- Date: Mon, 22 Aug 2005 18:05:24 +0200
An error occured in line:
> repeat while x ‚ b
Also, did you see the number of lines of _my_ script and _your_ script ?
At last, why do you open a folder so deep in the hard disk hierarchy ?
> open "iMac HD:Users:rpoland:Desktop:zz for iBook"
Emile
email@hidden wrote:
Date: Sun, 21 Aug 2005 13:04:50 -0600
From: Robert Poland <email@hidden>
Subject: Re: Finder Scripting
To: AppleScript <email@hidden>
Message-ID: <a06230902bf2e80c1c7c4@[192.168.0.3]>
Content-Type: text/plain; charset="iso-8859-1" ; format="flowed"
At 09:01 +0200 8/21/05, Emile Schwarz wrote:
I am sorry to have to report the following:
>tell application "Finder"
set bounds of front window to {0, 44, 100, 100}
return properties of front window
end tell
>
When run, the script does its job. BUT, close
the window, open it and you get the window back
to the previous location and widh/height...
A similar effect occurs when attempting to set
window bounds in Terminal.app. Setting the
bounds twice helps but making a loop that sets
bounds then checks bounds until Terminal gets it
right never fails.
--
IMHO the following script disclaims this. ???
tell application "Finder"
set x to 0
set a to 0
set b to 44
set c to 100
set d to c
activate
repeat while x ‚ b
open "iMac HD:Users:rpoland:Desktop:zz for iBook"
set bounds of front window to {a, b, c, d}
delay 0.5
-- return properties of front window
close front window
open "iMac HD:Users:rpoland:Desktop:zz for iBook"
set {w, x, y, z} to bounds of window 1
close front window
end repeat
end tell
{w, x, y, z}
_______________________________________________
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