![]() ![]() Set movedFrom to "Moved from: " & fromPath & " in " & fromDatabase Set toDatabase to the name of the database of theDestination Set toPath to (the location of theDestination) & (the name of theDestination) If theSelection is then error "We had a problem choosing the destination" I also tried the Move script in the examples, but that has to have the Group selected in Group selector panel. I’ve searched the Forums, but no one has posted a script that will work like this from what I’ve seen. I am hoping to create a script to move an item from within the same database to a group, this way I can use Keyboard Maestro to move the record to a specific group. I usually have the items in the inbox of a Database then move them to 1 of 3 groups. I’m trying to edit this script to get it to work within DTPO but I’m having issues. Log message (name of newrecord) & " imported to " & (name of dest) Set newRecord to import currentFile to dest Here’s a simple example (written in KM 8.x) working on a selection in the Finder… tell application "Finder"Ĭopy POSIX path of thisFile to end of fileListĭisplay alert "Nothing selected in the Finder" I had no idea about how AppleScript worked and the potential for automation until now! Thanks again for the help. I am back up and running at full speed so thanks! I also am enjoying learning about AppleScript and testing things out. While outside of the AppleScript, it does the job. I realized this after seeing about 20 versions of my test folder in DTPO.Īs for deleting the file after I import, I was able to use a KM action to move the item to the trash from finder. Armed with a bunch of fresh ideas, I started tinkering again today and realized that I simply needed to adjust the KM option that shows results of Applescripts. I researched, tried and failed many times and finally found and its amazing AppleScript tutorial. I then thought that the script didn’t work and set out to fix it myself (lol, I know), since I didn’t want to admit defeat so easily on a forum. I used the AppleScript Bluefrog provided, and of course, not realizing that KM had the option to show results of AppleScript in various ways (ignore, large window, brief etc.), was getting frustrated because it kept popping up a large window that said “true”. I can cut, paste and run Applescripts but actually writing them has always been (and still is) beyond me. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |