• 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
Re: pList read and write
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pList read and write


  • Subject: Re: pList read and write
  • From: Luther Fuller <email@hidden>
  • Date: Wed, 07 Apr 2010 19:09:58 -0500

On Apr 7, 2010, at 5:03 PM, Oakley Masten wrote:
Hello again all.
You did such a great job of helping me with the creating pList files using AppleScript that I just have to ask another question.
Is it possible to write and read pList files from the "Resources" folder inside a script bundle?
I know you can write and read scripts in the bundle but can it be done for pLists?
I have not been able to do it yet.

Your application knows its internal structure, so if you have a plist file you want to read/write, you will need an alias to the file, like this ...

set fileAlias to (((path to me) as text) & ":Contents:Resources:myfile.plist") as alias

Now, you can read or write the file with System Events.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: pList read and write
      • From: Stan Cleveland <email@hidden>
References: 
 >pList read and write (From: Oakley Masten <email@hidden>)

  • Prev by Date: Re: Index a given folder
  • Next by Date: Re: pList read and write
  • Previous by thread: pList read and write
  • Next by thread: Re: pList read and write
  • Index(es):
    • Date
    • Thread