• 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: Netscape email scripting & pasting weirdness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Netscape email scripting & pasting weirdness


  • Subject: Re: Netscape email scripting & pasting weirdness
  • From: John Delacour <email@hidden>
  • Date: Wed, 20 Aug 2003 07:24:50 +0100

At 12:30 pm +1000 20/8/03, Kelvin Aitken wrote:
Talking of copying and pasting, when I copy a portion of text from an email such as this:

B07D_17147.jpg
B07D_17106.jpg
B07A01_32372.jpg
ENV_49515.jpg
F18AO11_23209.jpg
T01A02_6628.jpg
T01A02_50739.jpg

and save with TextEdit I then run the following script:

set fileTarget to (choose file with prompt "Select the file to replace text in") as text
set messageText to read file fileTarget
set AppleScript's text item delimiters to "
" --looking for returns to divide the text up into a list
set outList to text items of messageText as list



What obvious mistake do I have in the script?

That you are not distinguishing between ascii character 10 and ascii character 13 in three cases -- in whatever your script editing program is, in whatever your email program is and in TextEdit. You need either to know or to check which line ending is being used in each case and set AppleScript's text item delimiters to the proper character accordingly.

JD




.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Netscape email scripting & pasting weirdness
      • From: John Delacour <email@hidden>
References: 
 >Re: Netscape email scripting (From: Nigel Smith <email@hidden>)
 >Netscape email scripting & pasting weirdness (From: Kelvin Aitken <email@hidden>)

  • Prev by Date: combining Applescript and CLI/cron jobs
  • Next by Date: Re: Netscape email scripting & pasting weirdness
  • Previous by thread: Netscape email scripting & pasting weirdness
  • Next by thread: Re: Netscape email scripting & pasting weirdness
  • Index(es):
    • Date
    • Thread