• 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: 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.

  • Follow-Ups:
    • Re: "cd " and "tail -f" on a file
      • From: John Delacour <email@hidden>
    • Re: "cd " and "tail -f" on a file
      • From: Paul Skinner <email@hidden>
References: 
 >Re: "cd " and "tail -f" on a file (From: Paul Skinner <email@hidden>)

  • Prev by Date: Re: "cd " and "tail -f" on a file
  • Next by Date: Applescripting AOL address Book?
  • 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