I used this script and it worked fine till I upgrade to Lion
set inputfolder to (choose folder)
set textutilPath to "/usr/bin/textutil"
-- get the input webarchive file and variables
set webarchiveFile to choose file with prompt "Choose the webarchive file to convert to rtfd:" without invisibles
-- calculate the output rtfd path
set rtfdPath to (webarchiveFile as text) & ".rtfd"
-- convert webarchive to rtfd
do shell script quoted form of textutilPath & " -format webarchive -convert rtfd -output " & quoted form of POSIX path of rtfdPath & space & quoted form of POSIX path of webarchiveFile
Now as I open it it runs forever and nothing happens
Do I need to change anything or Applescript in Lion is not longer supported?
Thanks everyone