Thursday, December 14, 2017

#1 2005-10-12 02:39:40 pm

julifos
Administrator
From:: Malasaña, Madrid
Registered: 2002-11-20
Posts: 2014

Some of my script lines are too long and difficult to read on screen

AppleScript supports a continuation character if you want to break a line to make it more readable in the Script Editor window. To insert the continuation character, type option-return. An "L"-shaped character is inserted at the end of the line and your cursor is moved to a new line. When the script executes, it treats the second part of the line as though it is on the original line.

You can use as many continuation characters as you want to make your script readable (even several within the same line), however, you cannot insert a continuation character within a string.

Applescript:

if thisNumber is greater than 5 and thisNumber is less than 255 then �¬
   display dialog "Hey!" with icon note buttons {"Do it again!"} Ã?¬
       default button 1 giving up after 2

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)