Apple Developer Connection
Advanced Search
Member Login Log In | Not a Member? Contact ADC

Technical Q&A QA1493
How do I access files contained in my AppleScript Studio application bundle?

Q: How do I access files contained in my AppleScript Studio application bundle?

A: If you have files in your AppleScript Studio application's ApplicationName/Contents/Resources/ folder, you can access those files by using "resource path of main bundle". See Listing 1 for an example.

Listing 1: Using 'resource path of main bundle'

set myFile to (resource path of main bundle) & "/Path/to/your/file.txt"

Document Revision History

DateNotes
2006-10-09First Version

Posted: 2006-10-09




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.