Re: "cd " and "tail -f" on a file
Re: "cd " and "tail -f" on a file
- Subject: Re: "cd " and "tail -f" on a file
- From: Todd Reid <email@hidden>
- Date: Mon, 17 Mar 2003 09:05:24 -0700
Paul,
This works (thank you), returning a correct list of the files in the
targeted directory.
HOWEVER, what I need is to ultimately "tail -f" a file in that directory in
the Terminal itself.
So when I direct this script (accounting for the "do script" vs "do shell
script" differences") to the Terminal, I get a permissions denied error.
Thanks,
Todd
On 3/17/03 8:46 AM, "Paul Skinner" <email@hidden> wrote:
>
Try this script and see if it returns the ls of the directory you
>
choose.
>
>
set x to quoted form of POSIX path of (choose folder)
>
do shell script "cd " & x & " ; ls"
>
>
Paul Skinner
>
>
On Monday, March 17, 2003, at 10:22 AM, Todd Reid wrote:
>
>
> Andrew,
>
>
>
> First of all, thank you! I'm getting closer, but not quite there yet.
>
>
>
> Given this:
>
>
>
> set x to quoted form of POSIX path of (alias "Cymbal of
>
> Desire:Users:treid:DailyBuilds:2003-03-14_build1428
>
> English:AppName:AppName
>
> Application Support:Appname Engine:logs:")
>
> tell application "Terminal"
>
> do script "cd " & x
>
> end tell
>
>
>
> I get this in the Terminal:
>
>
>
> [Cymbal-of-Desire:~] treid%
>
> '/Users/treid/DailyBuilds/2003-03-14_build1428
>
> English/AppName/AppName Application Support/AppName Engine/logs/'
>
> /Users/treid/DailyBuilds/2003-03-14_build1428 English/AppName/AppName
>
> Application Support/AppName Engine/logs/: Permission denied.
>
> [Cymbal-of-Desire:~] treid%
>
>
>
> This is in my home folder, so I don't think permissions are really an
>
> issue.
>
> I don't see the "cd " in the Terminal output...is something going wrong
>
> there? I know without issuing a "cd " command, I WILL get a permissions
>
> denied error returned.
>
>
>
> Thanks,
>
>
>
> Todd
>
Creo | Creative Software Group
todd reid | quality assurance engineer | +1.720.932.4718
email@hidden |
http://www.creo.com/sixdegrees
IMAGINE CREATE BELIEVE
_______________________________________________
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.