From the dictionary:
"answer file..." is an LC command, nothing to do with the command line, and returns the long file path already....
Use the longFilePath function to get the long equivalent of a short file path passed from the command line.
...
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
"answer file..." is an LC command, nothing to do with the command line, and returns the long file path already....
Use the longFilePath function to get the long equivalent of a short file path passed from the command line.
...
Code: Select all
on mouseUp
local XYZ,tencrypted
answer file "Choose an RTF file to import"
put it into FDA
if the result = "cancel" then
exit mouseUp
else
put URL ("binfile:" & it) into XYZ
encrypt XYZ using "aes-256-cbc" with password "richmond62"
put it into tencrypted
if the result = "cancel"
then exit mouseUp
else
put tencrypted into URL ("binfile:"&FDA)
get the longFilePath of FDA
set the itemDelimiter to slash
set the defaultFolder to item 1 to -2 of the longFilePath of FDA
end if
end if
end mouseUp
Code: Select all
...
answer file "..."
...
Code: Select all
...
put URL ("binfile:" & it) into XYZ
encrypt XYZ using "aes-256-cbc" with password "richmond62"
put it into tencrypted
if the result = "cancel"
then exit mouseUp
else
...
That is exactly what has been explained in previous posts.Can you give me a code that encrypts these files?