Re: Searching for a folder in Applescript.
Re: Searching for a folder in Applescript.
- Subject: Re: Searching for a folder in Applescript.
- From: "John W. Baxter" <email@hidden>
- Date: Sat, 06 Sep 2003 06:57:56 -0700
- Envelope-to: email@hidden
On 9/6/2003 4:04, "Shane Stanley" <email@hidden> wrote:
>
On 6/9/03 5:30 PM +1000, John Delacour, email@hidden, wrote:
>
>
> Very odd. It wasn't a typo and it does work here, but now I do man
>
> mkdir I can't see that option, so goodness knows where I got it from.
>
> Try it with -v
>
>
Already did; same error.
>
>
> but note the proviso:
>
>
>
> COMPATIBILITY
>
> The -v option is non-standard and its use in scripts is not recommended.
>
>
But what's the -v option trying to do? And where did you get that proviso if
>
man doesn't list the -v option?
Often, if -v can be used together with other options or parameters, it means
"verbose". That's likely what it means with some flavors of mkdir. When it
means that, very often -vv (or -v -v) would mean "even more verbose". When
it means verbose, the command outputs a description of some sort of what
it's doing. The tar command is an example of this (all flavors of tar I've
used):
[john@Zeus john]$tar -cf s.tar Sites
[john@Zeus john]$tar -cvf s.tar Sites
Sites
Sites/images
Sites/images/._apache_pb.gif
Sites/images/._macosxlogo.gif
Sites/images/._web_share.gif
Sites/images/apache_pb.gif
Sites/images/macosxlogo.gif
Sites/images/web_share.gif
Sites/index.html
[john@Zeus john]$tar -cvvf s.tar Sites
drwxr-xr-x 4 john staff 136 Feb 13 2001 Sites
drwxr-xr-x 8 john staff 272 Feb 13 2001 Sites/images
-rwxr-xr-x 1 john staff 82 Feb 13 2001
Sites/images/._apache_pb.gif
-rwxr-xr-x 1 john staff 82 Feb 13 2001
Sites/images/._macosxlogo.gif
-rwxr-xr-x 1 john staff 82 Feb 13 2001
Sites/images/._web_share.gif
-rwxr-xr-x 1 john staff 2326 Feb 13 2001
Sites/images/apache_pb.gif
-rwxr-xr-x 1 john staff 2829 Feb 13 2001
Sites/images/macosxlogo.gif
-rwxr-xr-x 1 john staff 13370 Feb 13 2001
Sites/images/web_share.gif
-rwxr-xr-x 1 john staff 6186 Feb 13 2001 Sites/index.html
On the other hand, in some flavors of the ls command, -v means
-v Force unedited printing of non-graphic characters; this is the
default when output is not to a terminal.
And in grep, -v means invert the sense of the test: show lines NOT
containing the pattern.
When -v doesn't mean verbose, it often means version (report your version
and exit). If -v doesn't do that, often -V does...in many GNU programs, so
does --version.
--John
The tar command is named for Tape Archive (and initially was mostly used to
write directly to tape). I've never used it to write to tape, but these
days it's perfectly willing to write to a file (the -f filename option in
each example above).
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.