• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: "cd " and "tail -f" on a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: "cd " and "tail -f" on a file
      • From: Todd Reid <email@hidden>
References: 
 >Re: "cd " and "tail -f" on a file (From: Todd Reid <email@hidden>)

  • Prev by Date: Re: Getting battery state?
  • Next by Date: Re: "cd " and "tail -f" on a file
  • Previous by thread: Re: "cd " and "tail -f" on a file
  • Next by thread: Re: "cd " and "tail -f" on a file
  • Index(es):
    • Date
    • Thread