Re: A simple deletion script
Re: A simple deletion script
- Subject: Re: A simple deletion script
- From: James Cass <email@hidden>
- Date: Sun, 11 May 2003 07:07:08 -0400
- Organization: neugenix
On Sunday 11 May 2003 06:40 am, H.S. Photo wrote:
Hans-
Use a semi-colon instead of a colon. A ";" seperates commands on the same
command line.
do shell script "cd ~/folder ; rm nam*"
Regards,
Cassj
>
> At 10:49 AM +0100 11/05/03, H.S. Photo wrote:
>
>> Can I just enter "cd ~/folder : rm nam*" in Script Editor?
>
>
>
> Almost. Use "do shell script" (in StandardAdditions.osax):
>
>
>
> --------------------------
>
> do shell script "cd ~/folder : rm nam*"
>
> --------------------------
>
>
>
> Emmanuel
>
>
Emmanuel,
>
>
Much appreciated. When I run this I get "execution error
>
sh:cd:/users/hans/folder: No such file or directory"
>
>
I am sure there's something simple I am missing here. If you can show me
>
the light I'd be much indebted!
>
>
Hans
_______________________________________________
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.