• 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: Formatting question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Formatting question


  • Subject: Re: Formatting question
  • From: KOENIG Yvan <email@hidden>
  • Date: Fri, 20 Apr 2007 15:55:58 +0200


Le 20 avr. 07 à 15:49:32, Chris Waldrip a écrit :

display dialog "Enter your DNG Kit number" & return default answer "" buttons {"Next", "Cancel"} default button 1 giving up after 30

set DNGnumber to number of result

if DNGnumber is false then end


display dialog "DNGnumber is " & DNGnumber


if DNGnumber is less than 10 then

display dialog "DNG00" & DNGnumber

else if DNGnumber is less than 100 then

display dialog "DNG0" & DNGnumber

else

display dialog "DNG" & DNGnumber

end if



You used a wrong syntax.


display dialog "Enter your DNG Kit number" & return default answer "" buttons {"Next", "Cancel"} default button 1 giving up after 30
set DNGnumber to (text returned of result) as number
if DNGnumber is false then end

display dialog "DNGnumber is " & DNGnumber
set DNGnumber to "DNG" & text -3 thru -1 of ("000" & DNGnumber)


Yvan KOENIG
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Formatting question
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Formatting question (From: Chris Waldrip <email@hidden>)

  • Prev by Date: Formatting question
  • Next by Date: Re: Formatting question
  • Previous by thread: Formatting question
  • Next by thread: Re: Formatting question
  • Index(es):
    • Date
    • Thread