applescript - Can't open file for writing -
applescript - Can't open file for writing -
i'm trying create log file so:
set logfilepath (path desktop folder string) & "waiting.scpt.log" -- "/tmp/waiting.scpt.log" text -- set logfilepath (path "temp" user domain text) & "waiting.scpt.log" seek close access file logfilepath on error err display dialog err end seek set logfile open access logfilepath write permission
i dialog saying file file tlv-mp3u2:users:idror:desktop:waiting.scpt.log wasn’t open.
, error error "file file tlv-mp3u2:users:idror:desktop:waiting.scpt.log open." number -49 file "tlv-mp3u2:users:idror:desktop:waiting.scpt.log" «class fsrf»
i moved file in question trash , ran script again, same result
also, want open file under /tmp, if seek "file access error" (-54)
i've given finding answers in google... please help
ctrl-click
applescript
, check out menu error handlers=>write error log
- code shows how it's done.
applescript
Comments
Post a Comment