I’d like to restate my earlier post more clearly. I’m having difficulty find the path to files that are not on the desktop in the code below.
tell application "Smultron"
activate
set theFile to the name of the front window
set theClass to the first word of theFile
set theFile to theClass & ".java"
(*
this is where I need help
I'd like to find the path of theFIle
wherever it is, not just on the desktop
*)
set thePath to "~/Desktop"
set s to the bounds of the front window
end tell
tell application "Terminal"
activate
do script with command "cd " & thePath & ";clear; javac " & theFile & "; java " & theClass & "; echo"
set bounds of front window to {(item 3 of s) + 2, (item 2 of s) - 13, (item 3 of s) + 350, (item 2 of s) + 350}
close the second window
end tell
Model: Powerbook G4
AppleScript: 1.10
Browser: Safari 412
Operating System: Mac OS X (10.4)