applescript error "can't make...into constant type"
"Finder got an error: Can't make "Photo [Data]: Archive error LOG:" into tpe constant."
from the following script:
tell application "TextEdit"
activate
tell application "Finder" to set visible of process "TextEdit" to false
tell application "Finder"
set LogFileName to first item of fileErrorList
set {oldDelims, my text item delimiters} to {my text item delimiters, "."}
set LogFileName to first text item of LogFileName & ".rtf" as string
set my text item delimiters to oldDelims
set LogFolder to (path to "Photo [Data]:Archive error LOG:" as string)--THE SCRIPT GETS HUNG UP HERE
set theLogFile to (LogFolder & LogFileName)
set theRealLogFile to POSIX path of theLogFile
end tell
This is a small part of a larger script, but I think the rest of the script is OK. I can post the rest if necessary.
Thanks.
Peter
G5 Mac OS X (10.4.9)