Re: AS101: scripts for distribution - various Qs
Re: AS101: scripts for distribution - various Qs
- Subject: Re: AS101: scripts for distribution - various Qs
- From: JollyRoger <email@hidden>
- Date: Fri, 18 Jan 2002 06:49:23 -0600
On 1/17/2002 9:59 PM, "SeaJay" <email@hidden> wrote:
>
I'm working on a small script for public distribution.
>
The script acts on the filesystem - some 'duplicates'
>
and 'moves'. It targets specific system files (their
>
paths are known).
>
>
How do I ensure the paths I set don't break? Is there
>
a wildcard in AS at all? Something like UNIX?
>
/dirname/*/dirname/*/filename
That depends on what files/folders the paths point to. Can you be more
specific?
>
Or do I have to make the app get the 'home' property
>
for "Finder" and pass the values to a variable and
>
then use the variable in my paths?
If by "home property" you mean the name of the startup volume, then yes,
that may be a good starting point, depending on what you are doing. We
really need more information about what you are trying to do to help you
though.
>
(christ, AS doesn't do anything the easy way) =)
I think you'll find there are a lot of features in AppleScript that do
things in an easy manner. But you have to take the good with the bad.
JR