• 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: inculding and reading from files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inculding and reading from files


  • Subject: Re: inculding and reading from files
  • From: Jon Pugh <email@hidden>
  • Date: Fri, 14 Jun 2002 23:36:18 -0700

At 10:57 PM +0200 6/14/02, Zimba wrote:
>I was wondering how I can get a function close to include in order to load part of scripts... was wondering if it was possible under AS...
>
>I found a way around by the command load script "url of the compiled script", but I can't find how to read from a file... does anyone got a tip

OK, actually the "load script" command can do what you seem to want. It reads compiled script files and loads them into the current script where you can then use them.

Here's an example:

property script1 : load script (alias "where:your:script:is")

tell script1
-- call some handler that is defined in the script
end


There are a number of other techniques you can use too, but I'll leave those for after you determine if this is an approach you want to use.

Jon
_______________________________________________
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.

References: 
 >Re: inculding and reading from files (From: Zimba <email@hidden>)

  • Prev by Date: Re: can I do this better?
  • Next by Date: Re: inculding and reading from files
  • Previous by thread: Re: inculding and reading from files
  • Next by thread: Re: inculding and reading from files
  • Index(es):
    • Date
    • Thread