Existing users, log in.  New users, create a free account.  Lost password?

Mac OS X  |  System / Utilities  |  Other System / Utilities  |  iNotify  |  Multi-line "click script"

iNotify

iNotify

create custom buttons on desktop or menu bar

Version:  1.0.2

   [ Views: 255 ]

Multi-line "click script"

Feedback Type:  Usage Tip

Contributed by: tycholith Wednesday, May 14 2003 @ 06:52 AM PDT

Product Platform: MacOSX

Used Product For: One Day

For a multi-line click script, concatenate the lines together with a return in-between, as in the following example:

click script ("tell application \"Finder\"" & return & "open trash" & return & "end tell")

In AppleScript, the ampersand is used for string concatenation, and "return" is the carriage return character. Note also that embedded quotes are preceded by a backslash.

The iTunes Buttons example shows how to create a multi-line click script by concatenating the lines into a string variable, then using the variable for the click script.   

2 of 2 users found this helpful.

Rate this Usage Tip

Was this Usage Tip helpful? Yes | No

Comments

1 comments |

Multi-line "click script" - ExecutiveEditor

Thanks! I hadn't looked closely at the iTunes button script. Makes sense, though.

Reply to This

Wednesday, May 14 2003 @ 05:34 PM PDT