|
Armin's Spot on the Web |
Discussion |
|---|---|
Cocoalicious Sample Scripts
The Cocoalicious Project now supports AppleScript. Here are some ideas and examples what you con do. Accessing PostsThe tell application "Cocoalicious" -- get first post get post 1 -- filter by description get first post where description starts with "RSVP" -- filter by tags get every post where tag string contains "opensource" -- filter by date (timestamp) get every post where timestamp is greater than (current date) - 1 * days end tell The
Note: in the current implementation you can read the properties but not set them. Creating a New Posttell application "Cocoalicious"
make new post with properties {description:"RSVP", url:"http://rsvp.atsites.de/", tag string:"blog applescript"}
end tell
Note: the result of set theNewPost to first post where url is theNewUrl Deleting a postOnce you have found the post you want to remove simply use a delete first post Build an HTML List from Cocoalicious PostsNow for a more complex example: this script will gather all the posts from the last 3 days and build an HTML list like this one from the data and put it in the clipbaord. |
|
This page was last updated: Monday, December 13, 2004 at 10:02:39 PM Copyright 2010 RSVP - Please Reply Mail me @ arminbatmacdotcom |
|