A frustrating problem - Grabbing Notes field from iCal event
A frustrating problem - Grabbing Notes field from iCal event
- Subject: A frustrating problem - Grabbing Notes field from iCal event
- From: Josh Tishhouse <email@hidden>
- Date: Thu, 28 Jan 2010 10:28:35 -0500
Hi all - I'm having a frustrating problem that I hope you can provide insight into.
I've got a script that grabs the notes field from a specified event and saves it to a variable. What I'm trying to do is grab the text from the first line, and save it to one variable. The text on line 1 is, say "this-is-text" while line two says "This is some more text"
So I have the script doing this:
set theTextToParse to description of theEvent set theShortname to line 1 of theTextToParse
If I try to get line 1 of theTextToParse, I get the first letter ONLY. If I try to get word 1 of theTextToParse, I get the first portion before the hyphen. If I try to capture item 1 of theTextToParse, I again get the first letter ONLY.
How do I capture the whole item "this-is-text" into a variable?
-Josh
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden