• 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
Scripting CLI apps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scripting CLI apps


  • Subject: Scripting CLI apps
  • From: Rick Davis <email@hidden>
  • Date: Sun, 19 Oct 2003 10:30:15 -0400

Heylo All,

Can results of AppleScripts be passed to terminal command line interface apps? For example instead of instructing non-technical persons on how to run createhomedir from the terminal can I use a script like:

display dialog "Create home directory for:" default answer "user shortname" buttons {"Cancel", "Create"} default button "Create"
tell application "Terminal"
createhomedir - result
end tell

Just thought someone may have gone down this road already. Will break out the books and see what I can figure out.

Thanks and Have A Great Day.

Rick Davis
_______________________________________________
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: Scripting CLI apps
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: [OT] Anti-Spam solution for web pages.
  • Next by Date: Re: Finder scripting dies
  • Previous by thread: Script editor hangs
  • Next by thread: Re: Scripting CLI apps
  • Index(es):
    • Date
    • Thread