Re: Copy folder shell scripting
Re: Copy folder shell scripting
- Subject: Re: Copy folder shell scripting
- From: "Mark J. Reed" <email@hidden>
- Date: Thu, 24 Apr 2008 16:34:57 -0400
> I tried that like this. I know this particular example is kinda going the
> long way around but I'm just trying to see how it works. This is on 10.4.11.
>
>
> #!/bin/sh
> osascript - "$@" <<EOF
> do shell script "ls"
> EOF
>
> And got this result in Terminal but I don't know what workspacegns means.
>
> [ip133:~] bruce% /Users/bruce/Desktop/osaText.sh
> workspacegns
That would be the names of the files output one per line, with the
newlines output by ls converted to returns by AppleScript. In your
case, I'm guessing the last file in the list was "workspace", and the
"gns" is left over from one or more earlier files. If you capture the
output and look at it with an editor you should see that.
Try this:
/Users/bruce/Desk/osaText.sh | tr '\r' '\n'
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden