Unwanted Comma in output file name
Unwanted Comma in output file name
- Subject: Unwanted Comma in output file name
- From: Gary Lists <email@hidden>
- Date: Sat, 14 Dec 2002 13:10:43 -0500
I am writing out a text file and I keep getting a "," prepended to the name.
Here is the call:
set oPath to ((path to desktop) & "output.html")
my writeOut(thePage, oPath, false)
and here is the handler:
on writeOut(this_data, target_file, append_data)
try
set the target_file to the target_file as text
set the open_target_file to ,
open for access file target_file with write permission
if append_data is false then ,
set eof of the open_target_file to 0
write this_data to the open_target_file starting at eof
close access the open_target_file
return true
on error
try
close access file target_file
end try
return false
end try
end writeOut
and here is the file name that is written (the file is fine):
,output.html
I have been over the handler and looked at the construction of the variable
'thePage' and I can't suppress the comma.
Do any of you see anything that I am botching?
Thanks
--
Gary
Incoming replies are auto-deleted.
Please post directly to the list or newsgroup.
Really need direct? Rot me at:
email@hidden
Lbhe fhowrpg zhfg ortva "abgwhax:" (ab dhbgrf)
Avpr gb zrrg lbh! Qba'g fcnz zr.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.