About sample code in this forum

GO TO ADMIN PANEL > ADD-ONS AND INSTALL VERTIFORO SIDEBAR TO SEE FORUMS AND SIDEBAR
Status
Not open for further replies.
Joined
Jul 1, 2003
Messages
705
Points
0
Location
Providence, RI, USA
Website
dougscripts.com
You can display AppleScript code in your message by using vb Code. The vB Code button labelled "#" on the Post New Thread form will place CODE tags around whatever you paste into its box. Additionally, I put SIZE=1 tags around the CODE tags to make the script smaller on the page and less likely to crowd up and wrap in the message. You don't have to do that, however. This is how my code looks:
Code:
[SIZE=1]tell application "iTunes"
	set theP to view of front window
	repeat with theT in every track of theP
		tell theT
			set comment to "What a comment!"
		end tell
	end repeat
end tell
[/SIZE]
Scripts are easier to read when indents are maintained by using the CODE tags.

You can use the Services menu in your browser to create a new AppleScript in Script Editor 2 Beta from selected webpage text. Otherwise, you can plain old copy-and-paste snippets from a forum messages to Script Editor.

Since this is a public forum, you understand that any AppleScript code you post can be seen, copied, and used by any users of this forum. Don't post snippets from your super double-secret project if you expect it to remain super double-secret.
:)
 
Last edited:

deeg

New member
Joined
Jul 1, 2003
Messages
394
Points
0
Location
Swampland, UK
Doug Adams said:
Since this is a public forum, you understand that any AppleScript code you post can be seen, copied, and used by any users of this forum. Don't post snippets from your super double-secret project if you expect it to remain super double-secret.
:)
yeah, it might end up in a British Intelligence dossier :D
 
Status
Not open for further replies.
Top