Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Return Delimiter



Title: Re: Return Delimiter
Several things to worry about. Most likely in this case is that file myRefNumber isn't return delimited - it's using unix endings (ASCII character 10, or it's from a Windows machine using return & lineFeed (ASCII character 10). Finally, if the text is unicode, you'll have to account for that.

At 11:54 AM -0500 1/16/07, Steven Valenti wrote:
I'm trying to set my delimiter to "Return" reading a file but it's not work in Script Editor. Funny thing is that it does work in Script Debugger but this isn't on the machine I'm deploying it to so I wish to make it work with Script Editor. I end up with just a list of 1 item so the last line errors. Anyone know anything about this or do I need to make a return character differently? I simply hit a return in between two quotes.

set DataInfo to read MyRefNumber using delimiter "
" as list for 500
set TheProcess to item 2 of DataInfo --errors here

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/bellac%40accesscable.net
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden

References: 
 >Return Delimiter (From: Steven Valenti <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.