• 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
How to prompt for multiple values (and verify them) from Installer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to prompt for multiple values (and verify them) from Installer?


  • Subject: How to prompt for multiple values (and verify them) from Installer?
  • From: Joseph Silverman <email@hidden>
  • Date: Thu, 6 Feb 2003 08:39:37 -0800

I would like to create a Package that, when Installed, would be able to prompt for a few numeric values in a specific range (TCP/IP port numbers, actually) during the postflight stage of the install. These would then be used to modify the installed files as necessary. I can do ONE value with:

value=`osascript -e 'tell application "Installer"
display dialog "enter a number" default answer "8080"
returned text of the result
end tell' i 2>/dev/null || echo DEFAULT-ANSWER`

This doesn't verify the result is numeric or in range, which I could readily add in shell but am not sure how to do it in AppleScript.

So, my question is, How do I do this?

Thanks - Yossie
_______________________________________________
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: Remember the "AIM Lockout" thread?
  • Next by Date: Re: AppleScript 1.8.3 for Mac OS 9
  • Previous by thread: Remember the "AIM Lockout" thread?
  • Next by thread: getting at frames in IE 5 (OS9)
  • Index(es):
    • Date
    • Thread