iLounge 2013 iPhone + iPod Buyers' Guide
Become a member of the iLounge Forums. Register Now!
To start viewing messages, select the forum that you want to visit from the selection below.
If this is your first visit, be sure to check out the Forum FAQ and Forum Policy.

Topic: About sample code in this forum

Closed Thread Thread Tools Topic Search
 
Old 07-18-2003, 03:07 PM
#1
 

Mod
 
Join Date: Jun 2003
Location: Providence, RI, USA
Posts: 705
About sample code in this forum

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:
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
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.
__________________
Visit Doug's AppleScripts for iTunes

Last edited by Doug Adams; 07-18-2003 at 03:16 PM.
Doug Adams is offline  
Share on TwitterShare on FacebookDigg this Post!Google Bookmark this Post!

Join the iLounge Community and the ad above will disappear.

Old 07-19-2003, 12:36 PM
#2
 

 
Join Date: Jun 2003
Location: Swampland, UK
Posts: 394
Re: About sample code in this forum

Quote:
Originally posted by Doug Adams
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
deeg is offline  
Share on TwitterShare on FacebookDigg this Post!Google Bookmark this Post!

Topic: About sample code in this forum

Closed Thread Thread Tools Topic Search

Become a member of the iLounge Forums. Register Now!
To start viewing messages, select the forum that you want to visit from the selection below.
If this is your first visit, be sure to check out the Forum FAQ and Forum Policy.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





View iLounge History. Read our old Forums Archive (2001-2003)
All times are GMT -4. The time now is 09:08 AM.


Shop for Accessories: Cases, speakers, chargers, etc.