Re: Formatting question
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