Is there a way to repeat an apple script until it reaches the end of the file or document.
I am trying to use applescript with text wangler to manipulate an qfx file to work with my quicken. Basicly I need to have the <NAME> field be less than 32 characters or my quicken will error out. I have the following code wich works for what I need.
the code works for what I need, but I can't figure out how to get it to repeat for the entire file. Each time I download a qfx file from my bank the size of the file will change. how can I get the repeat function to work until the end of the file or document.
Thanks
I am trying to use applescript with text wangler to manipulate an qfx file to work with my quicken. Basicly I need to have the <NAME> field be less than 32 characters or my quicken will error out. I have the following code wich works for what I need.
Code:
tell application "TextWrangler"
activate
find "<NAME>................................" searching in text 1 of text document 1 options {search mode:grep, starting at top:false, wrap around:false, backwards:false, case sensitive:false, match words:false, extend selection:false} with selecting match
copy selection
find "$" searching in text 1 of text document 1 options {search mode:grep, starting at top:false, wrap around:false, backwards:false, case sensitive:false, match words:false, extend selection:true} with selecting match
delete selection
paste
save text document 1
end tell
the code works for what I need, but I can't figure out how to get it to repeat for the entire file. Each time I download a qfx file from my bank the size of the file will change. how can I get the repeat function to work until the end of the file or document.
Thanks