|
|
#1 |
|
Prospect
Join Date: Feb 2006
Posts: 14
|
Help with text search
Hello
Im a newbie at applescript so bear with me. Im trying to create a script that will: 1. search multiple text files in an network folder for a 6 digit number 2. show the results of the search 3. copy the results to the clipboard the text files are job files that our company uses. Each job has a 6 digit number then data after it. for example: 600001 text text text 600002 text text text text 600003 I want to be able to do a search for 600001 and it will show the results plus copy the text after the job number but stop at the next 6 digit job number. Is this possible? Ive written a really basic script that only does the search through textwrangler but nothing else. This is it: tell application "TextWrangler" activate set jobNumber to text returned of (display dialog "Please enter the job number:" default answer "") find jobNumber searching in {alias "Tin:Text from PICK:"} options {search mode:grep, case sensitive:false, match words:false, extend selection:false, showing results:true} end tell Any ideas? Thanks. Mac OSX, 10.6.8 |
|
|
|
![]() |
| Tags |
| cop, copy, paste, search, text |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|