Re: What's wrong with the following script ?
Re: What's wrong with the following script ?
- Subject: Re: What's wrong with the following script ?
- From: Andrew Oliver <email@hidden>
- Date: Sun, 25 Jun 2006 14:57:32 -0700
On Jun 25, 2006, at 9:05 AM, Emile Schwarz wrote:
The script have been created while the Script Editor records the
Finder actions. Mac OS X 10.4.6
What's wrong with the following script ?
...
What's wrong with it?
It's ugly. It's perfectly useless. Will only work in cases where you
have at least 6 Finder windows open when you run it (otherwise it
will throw an error). It's completely inflexible, oh, and assuming
what it does is what you want, it be done with just two lines of code.
tell application "Finder"
close {Finder window 1, Finder window 2}
set bounds of Finder window 1 to {0, 44, 601, 394}
end tell
Recorded scripts are rarely useful, especially those recorded by the
Finder. They're usually too literal to be useful as-is after they're
recorded and require substantial editing to make them worthwhile, as
can be seen by the 78% of cruft in your example.
Andrew
:)
_______________________________________________
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