Re: syntax ?
Re: syntax ?
- Subject: Re: syntax ?
- From: "Marc K. Myers" <email@hidden>
- Date: Tue, 24 Jul 2001 08:56:23 -0400
- Organization: [very little]
Monk -
1.It's slightly faster.
2.I try to avoid taking a selection in the Finder and then acting on the
selection. Murphy's Law tells me that someone will be selecting
something else at that precise split second before the next command is
executed or will already have something else selected that's waiting to
be used in another Finder operation.
Marc [7/24/01 8:53:43 AM]
monk wrote:
>
>
marc - (et al)
>
>
i see why creating a 'button' variable is more logical and useful, but
>
below, i don't understand why a newfolder variable is better than just
>
straight commands for a folder, can you enlighten:
>
>
--this
>
tell application "finder"
>
make new folder at desktop with properties {name:"blah"}
>
select folder "blah"
>
open selection
>
set size of container window of folder "juxtatext(s)" to {253, 527}
>
set view of container window of folder "juxtatext(s)" to kind
>
end tell
>
>
--vs. this
>
tell application "finder"
>
set newFolder to (make new folder at desktop with properties
>
{name:"blah"})
>
open newFolder
>
set size of container window of newFolder to {253, 527}
>
set view of container window of newFolder to kind
>
end tell
>
>
curious
>
>
howie 'monk' elmer
References: | |
| >syntax ? (From: monk <email@hidden>) |