Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

GimmeSlack12

macrumors 603
Original poster
Apr 29, 2005
5,406
14
San Francisco
Ok this one has stumped me. I want to run an shell script within an Applescript.

Code:
do shell script "find ~/Downloads \( -type f -name "*.torrent" \) -exec cp {} ~/Torrents \;"

This is to filter out any torrents in the Downloads folder and copy them to another folder (the folder that Transmission is watching). But it keeps giving syntax problems having to do with the "\" and the ")". Anyone see my mistake or have any input? Thanks!
 
It's burping on your string. Try changing it to this:

do shell script "find ~/Downloads \\( -type f -name \"*.torrent\" \\) -exec cp {} ~/Torrents \\;"
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.