lolpeter
April 11th, 2011, 01:38 PM
Does anyone codes on applescript? If yes, post cool codes below.
lolpeter
April 11th, 2011, 01:41 PM
I just finished this app that calculates the distance from a storm from you using time measuring. :D
"
display dialog "Welcome to 'storm distance'. Please get a chronometer and press the Start button." buttons {"ABOUT", "START"} default button 2 with title "STORM DISTANCE" with icon 1
if the button returned of the result is "ABOUT" then
display dialog "ABOUT
'storm distance' is a software created by ------. This was created using applecript. This is a 100% free sofware. If you translate to your language, download the .scpt the site, put your name here in the 'about' session and send me by email. Thanks for downloading it." buttons {"Start"} default button 1 with title "STORM DISTANCE" with icon 1
end if
set theLight1 to text returned of (display dialog "When the lightening comes, you start the chronometer, when you when you hear thunder, stop it. And put it below, numbers only." default answer " " buttons {"OK"} default button 1 with title "STORM DISTANCE" with icon 1)
set theLight2 to text returned of (display dialog "Do it again, please. With another thunder, of course." default answer " " buttons {"OK"} default button 1 with title "STORM DISTANCE" with icon 1)
set theLight3 to text returned of (display dialog "One more time. With another thunder, of course." default answer " " buttons {"OK"} default button 1 with title "STORM DISTANCE" with icon 1)
set theSuperMan5 to theLight1 + theLight2 + theLight3
set theSuperMan to theSuperMan5 / 3
set theLightofdoom to 340 * theSuperMan
display dialog "Now, what sistem do you want to see the distance?" buttons {"Meters", "Feet"} with title "STORM DISTANCE" with icon 1
if the button returned of the result is "Meters" then
display dialog "An aproximate mesure of the storm distance, in meters: " & theLightofdoom buttons {"Close"} default button 1 with title "STORM DISTANCE" with icon 1
else
set theFeet to theLightofdoom * 3.28083
display dialog "An aproximate mesure of the storm distance, in feet: " & theFeet buttons {"Close"} default button 1 with title "STORM DISTANCE" with icon 1
end if
"
:) :)
TheMatrix
April 12th, 2011, 12:52 PM
This is the first time I've ever seen AppleScript. I don't think I like it. So confusing!!
I prefer Perl or PHP. :)
vBulletin® v3.8.9, Copyright ©2000-2021, vBulletin Solutions, Inc.