|Aug 24, 2006, 03:53 PM||#1|
newbie help string parsing
I just started learning Applescript. I would like to know if there is a good tutorial site for me to get going.
My goal is to download a set of text files using ftp, convert them into a new readable format and upload it to filemaker.
ADMI201 2A L14451730 -T-----0SH 407 0006100110
The strings are in a lenght delimited format, I would like to chop them and replace it with a tab. The final product should look like this:
ADMI201 2A 1445 1730 -T----- S H 407 61 110
My questions are:
Once I ftp and get the files, how do I open them one by one with applescript to parce it if the names are dynamic with a prefix let say filenumber###.txt (i.e. file1002.txt and file1003.txt)?
do i need a text editor such as BBedit to parse the file or I could do that inside applescript?
What will be the command to select let say the 10th character from the left, replace it with a "tab" and go to the next 5 character, replace it with tab and finally go to the next line? Something like the LEFT(); function.
Thanks in advance.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Format string is not a string literal.||larswik||Mac Programming||5||Jan 17, 2014 10:45 PM|
|RSS parsing help (simple)||johnnyfla123||iPhone/iPad Programming||12||Nov 29, 2013 10:16 AM|
|Search a string for a String of a specific format.||ncaissie||iPhone/iPad Programming||19||Nov 15, 2013 10:42 AM|
|parsing and displaying in tableview||jennylcf||iPhone/iPad Programming||2||Jan 28, 2013 06:31 AM|
|parsing XML in iphone?||hajira||iPhone||0||Sep 24, 2012 04:51 AM|
All times are GMT -5. The time now is 10:44 AM.