• 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: ctrl m question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ctrl m question


  • Subject: Re: ctrl m question
  • From: "John C. Welch" <email@hidden>
  • Date: Fri, 15 Dec 2006 15:09:15 -0600
  • Thread-topic: ctrl m question

On 12/15/06 15:01, "Mark J. Reed" <email@hidden> wrote:

> So you have a line of text from an email message in an AppleScript
> variable as a string.  For whatever reason, the text is still in its
> encoded form, with equal signs to indicate soft returns, so you want
> to chop off any ("=" & return) off the end. (No newline after the
> return?)
>
> Any reason why this wouldn't work?
>
> if theLine ends with ("=" & return) then
>         set theLine to (characters 1 through ((length of theLine) - 2)
> of theLine) as string
> end if

No, no. This is an SNMP application listing dumped to a file. The email
thing is a different project, and that's actually what I did.

john

--
Should you ever decide to use bamboo sticks and stretchy, decorative string
that¹s designed to wrap presents to make a bow and arrow, and should you
decide to wad up a bunch of duct tape on the end of your arrow and soak it
with WD-40 so it¹ll, you know, burn better, I would recommend not shooting
the flaming arrow onto the roof of a house, or into the lap of your friend¹s
cousin. Even by accident.


 _______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden

References: 
 >Re: ctrl m question (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: ctrl m question
  • Next by Date: Re: Picturebox to graphic box
  • Previous by thread: Re: ctrl m question
  • Next by thread: Applescript to search filenames
  • Index(es):
    • Date
    • Thread