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: Michelle Steiner <email@hidden>
- Date: Thu, 28 Jan 2010 09:32:11 -0700
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
-- "Every gun that is made, every warship launched, every rocket fired, signifies in the final sense a theft from those who hunger and are not fed, those who are cold and are not clothed." President Dwight D. Eisenhower, April 16, 1953
|
_______________________________________________
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