im coding simple applescript application personal use, don't complain if doing wrong way. heres line error
code:
set path137 quoted form of posix path of (choose file prompt "please choose text file perform action on") set text28 text returned of (display dialog "type in pattern, lines not including pattern deleted" set sedscript1 "sed -i '@text28@!d' " & path137 shell script sedscript1 end
heres exact error
code:
appdelegate.applescript:205: error: expected “,” found end of line. (-2741) command /usr/bin/osacompile failed exit code 1
one thing i'm not sure of if can put variable in sed or have do similar blabla"& path
right can't compile because of error
add : ) @ end of second line ![smile :) :)](styles/default/xenforo/clear.png)
code:
set path137 quoted form of posix path of (choose file prompt "please choose text file perform action on") set text28 text returned of (display dialog "type in pattern, lines not including pattern deleted") set sedscript1 "sed -i '@text28@!d' " & path137 shell script sedscript1 end
Forums Macs Mac Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
Comments
Post a Comment