• 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
this works in script editor, but not if i save as an application, please help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

this works in script editor, but not if i save as an application, please help


  • Subject: this works in script editor, but not if i save as an application, please help
  • From: Gabe Benveniste <email@hidden>
  • Date: Fri, 18 Apr 2003 15:38:13 -0700

set AdminPass to "AdminPass"
set VictimDrive to "X"

set diskLocation to do shell script "/bin/df /Volumes/'" & VictimDrive & "' | /usr/bin/tail -1 | /usr/bin/awk '{print $1 }'"
do shell script "/usr/sbin/diskutil partitionDisk " & diskLocation & " 2 HFS+ 'Macintosh HD' 10G HFS+ Data 10G" password AdminPass with administrator privileges
_______________________________________________
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.
  • Prev by Date: Re: Making an icon's background transparent
  • Next by Date: Request: Script for nullifying keys in Apple Pro Keyboard
  • Previous by thread: Re: Setting folder icon
  • Next by thread: Request: Script for nullifying keys in Apple Pro Keyboard
  • Index(es):
    • Date
    • Thread