• 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: include a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: include a file


  • Subject: Re: include a file
  • From: Andrew Oliver <email@hidden>
  • Date: Mon, 22 Nov 2004 09:06:44 -0800

On 11/22/04 8:47 AM, "Steve Foster" <email@hidden> wrote:

>
> Hi,
>
>
> is there a way to include a file with global settings in an
> applescript file ?
>
> Like include file"Volumes:HD_02:Script:Glob_Settings_for_Project"
>

And just what kind of file is it? Since you mention 'global settings', I
assume you mean a script file so that you can access its properties,
handlers, etc.? If so, just:

 set includeFile to load script
"Volumes:HD_02:Script:Glob_Settings_for_Project"

Then you can reference its properties via:

 set foo to includeFile's propertyName

Or call its handlers:

 set bar to includeFile's handlerName()

Andrew
:)

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >include a file (From: Steve Foster <email@hidden>)

  • Prev by Date: include a file
  • Next by Date: Re: Creating preferences for an applescript application
  • Previous by thread: include a file
  • Next by thread: InDesign, text frame contents, point size not applied to all lines
  • Index(es):
    • Date
    • Thread