• 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: Why root?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why root?


  • Subject: Re: Why root?
  • From: Deivy Marck Petrescu <email@hidden>
  • Date: Fri, 02 Aug 2002 11:34:03 -0400

At 4:17 PM +0100 8/2/02, John Delacour wrote:
Why does this script list the root instead of the user directory...

do shell script "ls -l"

and require us to to "cd ; ls -l" ?

The Terminal takes you to the user directory without any coercion. So does BBEdit. What happens if a user has no access permission to the root?

JD

if you type
do shell script "set" and check your result, you will see all the settings for
the do script command. In particular that pwd is "/"

Regards
--
Deivy Petrescu
http://www.dicas.com
_______________________________________________
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: Why root?
      • From: John Delacour <email@hidden>
References: 
 >Move a sound file (From: Rob Jorgensen <email@hidden>)
 >Why root? (From: John Delacour <email@hidden>)

  • Prev by Date: Re: Jaguar rebate
  • Next by Date: on added items rename folder action
  • Previous by thread: Re: Why root?
  • Next by thread: Re: Why root?
  • Index(es):
    • Date
    • Thread