Re: A frustrating problem - Grabbing Notes field from iCal event
Re: A frustrating problem - Grabbing Notes field from iCal event
- Subject: Re: A frustrating problem - Grabbing Notes field from iCal event
- From: Josh Tishhouse <email@hidden>
- Date: Thu, 28 Jan 2010 11:57:20 -0500
On Jan 28, 2010, at 11:32 AM, Michelle Steiner wrote: On Jan 28, 2010, at 8:28 AM, Josh Tishhouse wrote: 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?
Use "paragraph 1".
-- Michelle
Aha. Thanks. Don't I feel brilliant, now...
-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