I have set up a Smart Rule with an External script. Here the script I use:
-- Strip unwanted parts in Document Name on performSmartRule(theRecords) tell application id "DNtp" repeat with theRecord in theRecords set name of theRecord to do shell script "$HOME/share/bin/strip_title " & quoted form of name of theRecord end repeat end tell end performSmartRule
I have put it in the appropriate
Libarray folder, so I was able to select it for the Smart rule in the rule UI. So far so good.
When I select my rule in the Sidebar the file(s) in rule condition show up and I right-click on the rule and click “Apply” - then nothing happens.
Ther’s obviously something wrong with my Applescript… Any idea what?