|
|
#1 |
|
Major Leaguer
Join Date: Apr 2010
Posts: 324
|
Satimage osax buggy
Code:
tell application "Finder"
set textFileName to name of theFile
set textFileExtension to name extension of theFile
end tell
set listTextMatch to find text "qbert [0-9]{3,5}" in textFileName with regex
I'm using the Satimage osax (for the find text command). I saw some older information that there used to be problems because the osax wasn't 64-bit. It has supposedly been updated, but it doesn't seem to be working consistently. Anyone else having similar problems or suggestions?
__________________
see a problem; solve a problem. |
|
|
|
|
|
#2 |
|
Hall of Famer
Join Date: Apr 2007
Posts: 4,262
|
Your syntax is wrong. Satimage uses the keyword regexp (note the 'p' at the end). change the last line to read:
set listTextMatch to find text "qbert [0-9]{3,5}" in textFileName with regexp and it will work fine.
__________________
Philosophy is a battle against the bewitchment of our intelligence by means of language. -LW- |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|