Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Open RTF files in Safari' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Open RTF files in Safari
Authored by: PancakeMan on May 28, '03 01:14:01PM

I'm a newbie Applescripter using this hint as a way of solving a scripting problem, but it's still not working. I am trying to write a routine that, given an rtfd file, returns the rtf within.

This is what I have so far:

tell application "Finder"
activate SourceFolder
set the name of file (CurrentTitle & ".rtfd") to CurrentTitle
open folder CurrentTitle
set the name of file "TXT.rtf" to (CurrentTitle & ".rtf")
move file (CurrentTitle & ".rtf") to SourceFolder
end tell

I get an error "Can't set name of file ..."

Any suggestions?



[ Reply to This | # ]