Re: Netscape email scripting & pasting weirdness
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.