Seems like this used to work ;(
Seems like this used to work ;(
- Subject: Seems like this used to work ;(
- From: Jerry LeVan <email@hidden>
- Date: Sat, 21 Sep 2002 15:38:29 -0400
Hi,
I have not done much applescript since May. I had a script that converts a
Quicken QIF file to a text file that Postgres can import.
As I recall it worked ok in 10.1.5. I have since upgraded to 10.2.1 (
applescript 1.9).
I don9t seem to understand how to create a file and assign a creator... My
program dies with a stack overflow. (It really did use to work...).
Here is a small script that illustrates part of the problem:
set reportFile to choose file name with prompt "Select Report File Name"
set FD to open for access reportFile with write permission
write "Hello World
" to FD
close access reportFile
log reportFile
--set reportFile to file "Macintosh HD:Users:jerry:Desktop:foo.txt"
tell application "Finder"
set creator type of reportFile to "R*ch"
end tell
The set creator part fails in the finder tell block. If I use an existing
file ( say by uncommenting
The 3set reportFile2 statement and use an existing file the 3set creator2
works).
Is the problem due to the finder not being aware of the newly created file?
If so,
How can I fix the problem?
Thanks,
Jerry
_______________________________________________
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.