Read/write as record
Read/write as record
- Subject: Read/write as record
- From: Matthew Stuckwisch <email@hidden>
- Date: Thu, 13 Feb 2003 22:59:44 -0600
For my AS Studio program I'm trying to save data as record. I don't
seem to have any trouble with this:
write theFile to (POSIX file fileLocation) as record
However, I get an error when doing the following line elsewhere:
set theFile to read (POSIX file fileLocation) as record
Specifically, I get a "Parameter error". I CAN get it to function
somewhat by using the following, but it seems to be an unnecessary
workaround:
set theFile to read (POSIX file fileLocation) as list
--> {{info:"A few words about your list.", author:"Your name here.",
language:"es", |words|:{"Word 1", "Word 2", "Etc."}, |title|:"Records"}}
set theFile to item 1 of theFile
--> {info:"A few words about your list.", author:"Your name here.",
language:"es", |words|:{"Word 1", "Word 2", "Etc."}, |title|:"Records"}
Does anyone have any ideas? I haven't updated to 10.2.4 yet, but I
read there were no AppleScript updates.
Matthew Stuckwisch
[AIM/MSN]{GuifaSwimmer} | [Yahoo!]{SapphireTree} | [ICQ]{137477701}
[IRC]{guifa}(esperNET / GamesNet) | [E-mail]{email@hidden}
_______________________________________________
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.