Yes, that's the latest one Apple has. Apparently apple script hasn't
changed much since then. The problem is getting the info you need
from each new app that supports apple scripting though. Some of them
have dictionaries you can look at, and some don't. The ones that
have dictionaries though, still don't give you enough info most of
the time w/o experimenting to figure out exactly what the
capabilities are.
It's interesting, but frustrating at times too.
On Jan 22, 2006, at 12:00 PM, BlindTech of BlindTechs.Net wrote:
thanks travis, your a good man. hey I got a question on the apple
script:
do I have the latest apple script manuyal/docs dated may99?
On Jan 22, 2006, at 9:28 AM, Travis Siegel wrote:
Here it is again, for those who missed it the first time.
movefile.scpt, save it, and load it into apple script editor,
compile, and save.
Poof, a move file/directory command (and it will move anything, no
need to add it to a list first)
** cut here **
tell application "Finder"
set btn to button returned of (display dialog "Move file or
folder?" buttons {"file", "folder"})
if btn is equal to "file" then
set file1 to POSIX path of (choose file)
else if btn is equal to "folder" then
set file2 to POSIX path of (choose folder)
else
display dialog "Error in script."
end if
try
set file2 to POSIX path of (choose folder)
set movestr to "mv " & file1 & " " & file2 as text
tell application "Terminal"
do script movestr
-- quit
end tell
--display dialog file1 & " was moved to " & file2
end try
end tell
** cut here **
Feel free to remove the try/endtry blocks, since they're not quite
working the way they should. It does work thoughh.