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: Paul Skinner <email@hidden>
- Date: Mon, 17 Mar 2003 10:46:17 -0500
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
_______________________________________________
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.