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.



Reply via email to