get appleScript(file, path[, handler[, param(s)]])
I am getting with both of them the Error -1728 specifying that “It is impossible to obtain «class pALL»” of the target file.
Would someone have a suggestion?
Regards
Would someone have a suggestion?
function Renommer CheminHFS,NvoNom
put DossierSuperApp()& "AppleScript" & ":" into ChDossAScript
put ChDossAScript &"Renommer.scpt" into ASScript
return appleScript(file,ASScript,"Renommer",CheminHFS,NvoNom)
end Renommer
Thank you for help.
André Tremblay
PhotoGraphex
on mouseUp
answer file "Select a file to rename:"
if it = "" then exit script
put it into theFile
ask file "Rename file as:"
if it = "" then exit script
put it into newName
if theFile ≠ newName then put shell(merge("mv -f `[[hfsToPosix(theFile)]]` `[[hfsToPosix(newName)]]`"))
end mouseUp
Note that if the source and destination folder are different this will actually MOVE the file (which you could preclude with a bit of scripting, if that's a problem...).
-Mark
In the meantime, does this give you any ideas?
Error -1728 specifying that “It is impossible to obtain «class pALL»” of the target file