• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Read/write as record
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Q: specifying text in a variable to a color when inserting into Apple's Mail.app?
  • Next by Date: 10.2.4 update
  • Previous by thread: Re: Can't compile Mail scripts
  • Next by thread: Re: Read/write as record
  • Index(es):
    • Date
    • Thread