Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread Display Modes
Old Aug 24, 2006, 03:53 PM   #1
macrumors newbie
Join Date: Aug 2006
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.

Original file:
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.

tupa01 is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Handling Strings And Ints iPhone/iPad Programming 15 Oct 1, 2011 11:18 AM
Help with Parsing jpmcgrath iPhone/iPad Programming 2 Jul 23, 2011 01:03 AM
Weird iTunes strings being displayed in window schnb Mac Applications and Mac App Store 2 Apr 9, 2011 08:09 PM
Newbie Help please-Connecting New Mac Mini to TV Help Boothy Mac mini 1 Feb 9, 2010 11:10 AM
Newbie confused about parsing XML jeremyapp iPhone/iPad Programming 11 Feb 2, 2009 09:27 PM

All times are GMT -5. The time now is 09:01 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013,, LLC