I would appreciate some assistance with the correct syntax for use of @Destination to send an item to a named group. If the item’s name is Credit Card Statement and the target group is Credit Cards within the Financial database, what would the proper syntax be?
The syntax is just @groupname. By default the script looks only in the current database for a group with the specified name, this can be changed by setting pGlobalSearch in the script to true.
I’m experiencing an issue using the File Items.scpt as provided.
I’ve changed the property pGlobalSearch to true and I’m working with a file named Credit Card Statement@Credit Cards. The script moves the file into the Credit Cards group; however, @Credit Cards is not removed from the record name.
I’m far from being proficient with AppleScript, but it appears the intent is to remove that portion of the name. Am I correct? If not, can someone suggest language that could be added to do so?
Did you edit the external script ~/Library/Application Scripts/com.devon-technologies.think3/Smart Rules/File Items.scpt? It’s not recommended to modify the default scripts, it’s better to use a copy so that future updates won’t revert your changes. Or to use an embedded script in the rule.
Anyway, does restarting the app fix this? Your script works also fine.
I did edit the external script when the embedded copy did not function properly. I have since revised those edits back to their original.
I have restarted DT 3 and rebooted my MacBook Pro.
I was able to get the smart rule to work properly if I dropped the file into the Inbox belonging to the same database (Financial) as the target group (Credit Cards). I had been dropping the file into Global Inbox expecting the script to move it to the target group and remove the @ and everything after it…that did not work properly for me.
Does a file dropped in the Global Inbox move to the correct database and group for you?