• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: A frustrating problem - Grabbing Notes field from iCal event
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >A frustrating problem - Grabbing Notes field from iCal event (From: Josh Tishhouse <email@hidden>)
 >Re: A frustrating problem - Grabbing Notes field from iCal event (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Parsing out words in email subject
  • Next by Date: Re: Parsing out words in email subject
  • Previous by thread: Re: A frustrating problem - Grabbing Notes field from iCal event
  • Next by thread: Re: Parsing out words in email subject
  • Index(es):
    • Date
    • Thread