Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Adventures in Scriptland' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Adventures in Scriptland
Authored by: vaalrus on Jan 20, '02 10:11:35PM

Your little routine saved me a massive tumor... I suppose I could have tried something a little less involved for my first script, but I need* this to work... A droplet to convert pdb doc files back to raw text..., feeding a list of files to txt2pdbdoc

As follows

on open theFiles
convertem(theFiles)
end open


to convertem(whatToChange)

repeat with aFile in whatToChange
set inputfile to (unix_path(aFile))


(do shell script "/usr/local/bin/txt2pdbdoc -d " & inputfile & " " & inputfile & ".txt")

end repeat

end convertem



Works peachy, I even made it a toolbar script...

now I just have to go and add some characters to your routine... thing is, one of my drives has a "Sigma" as part of it's volume name (Old B5 naming scheme, don't ask, long story.) which slips through the filter... my own fault for insisting on carrying over naming patterns from OS 9 (Dag nabit, i want* to use slashes 'n stuff. Shucks.)



[ Reply to This | # ]
Adventures in Scriptland
Authored by: Severian on Feb 17, '02 08:00:52PM

Hmmm, maybe I'm just lost, but I can't seem to find any applescript commands on the december developer CD that I just downloaded. Where are those little rascals hiding?



[ Reply to This | # ]
Adventures in Scriptland
Authored by: james_sorenson on Feb 18, '02 12:20:28AM

After you install the Developer CD, run the Script Editor located in Startup Disk:Applications:AppleScript:Script Editor.app

Next, go to the menu bar and select File: Open Dictionary. Select "Standard Additions." This will give you the dictionary of most built-in Applescript commands (at least the ones I speak of here). Hope this helps you out!

Jim



[ Reply to This | # ]