I just know this is an app-specific syntax thing, but I’ve poured over BBEdit’s AS list archives and this board, and I’m stuck.
I view payment details through a Safari browser window. I’ve already got a script that loads the source into a new BBEdit text window, and removes all the markup:
tell application "Safari"
set the_content to source of document 1
end tell
tell application "BBEdit"
activate
make new text window with properties {contents:the_content}
replace "<([^<]*)>" using "" searching in text 1 of text window 1 options {search mode:grep, starting at top:true}
select insertion point before character 1 of text window 1
beep
end tell
The above works fine. I have more steps that go through and remove all the line breaks, double returns, etc. Ultimately I’m left with this:
I need to be able to collect all of the information AFTER the “:” in each line.
set MyName to (find "Name:" options {starting at top:true, wrap around:false, backwards:false, case sensitive:false, match words:false, extend selection:false} with selecting match)
select insertion point after the last character of MyName
gives me this error:
Any assistance is appreciated.
Model: pb tibook 667
AppleScript: 1.9.3
Browser: Safari 312.3.1
Operating System: Mac OS X (10.4)