Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's wrong with the following script ?




Harsh, man harsh....  <8-{

I'm guessing Emile is very new to AppleScript and is looking for newby-like assistance.

Perhaps constructive questions like, "For what purpose are you running this script and what error were you getting?" are more in order.

Cheers,

Coj



Andrew Oliver <email@hidden>
Sent by: applescript-users-bounces+brett.conlon=email@hidden

26/06/06 07:57 AM

To
email@hidden
cc
email@hidden
Subject
Re: What's wrong with the following script ?






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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden

References: 
 >Re: What's wrong with the following script ? (From: Andrew Oliver <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.