• 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: do shell script with administrator privileges & shell commands
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: do shell script with administrator privileges & shell commands


  • Subject: Re: do shell script with administrator privileges & shell commands
  • From: Alex Robinson <email@hidden>
  • Date: Wed, 14 Aug 2002 12:10:26 +0100

>This information is quite helpful. One further issue I've been encountering
>with the "do shell script" command is converting Mac-style path strings
>(e.g., "HD:Users:username:Folder1:") to Unix-style paths (e.g.,
>"/Users/username/Folder1"). Is there a command to execute this conversion
>directly?

This simple snippet should give you the basic idea

>>>>
set the_file to (choose file)
return POSIX path of the_file
<<<<
_______________________________________________
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:
    • tell app Terminal on a given window
      • From: "Lizardo H. C. M. Nunes" <email@hidden>
References: 
 >Re: do shell script with administrator privileges & shell commands (From: Jeffrey Berman <email@hidden>)

  • Prev by Date: Re: Count files
  • Next by Date: Re: Count files
  • Previous by thread: Re: do shell script with administrator privileges & shell commands
  • Next by thread: tell app Terminal on a given window
  • Index(es):
    • Date
    • Thread