I want to write a short script which will copy a selection of files (filenames) to the clipboard, get the name of the CD then activate Word or text edit and paste the disk name, followed by the clipboard contents and ‘–END’. I will run the script after inserting each CD. (I have 800+ data CDs to get through.)
I have never scripted before, but I do know the general ins and outs.
First, avoid the clipboard. It is completely unnecessary for this process.
Secondly, while you can build a script that periodically dumps data into a Word/TextEdit/whatever app document, it’s much easier to write the data to disk directly (e.g. to a text file) and just open that text file when you’re done.
Before I start again… I modified the code you gave me and perfected the file layout to my requirements… and saved the file as an .app to use and a .scpt to keep the source code.
Apparently .scpt was wrong! Is there anyway to decompile the .scpt file so I can get the source code back? I really don’t want to do everything again!
You may want take a look to “quick catalog” or “hierarchical catalog” included in the package kapullo, under the category “Utils”.
Here is sample output from “quick catalog”: