• 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: Scripting Applescript itself
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Scripting Applescript itself


  • Subject: RE: Scripting Applescript itself
  • From: Gary Bielby <email@hidden>
  • Date: Fri, 29 Nov 2002 09:05:24 -0000

You can just run text files, you can also send variables into the test file
you want to run and return stuff also.

eg:

---
tell application "Finder"
set localDisk to name of startup disk & ":"
end tell

set theScriptFile to ((localDisk) & "Desktop Folder:runThisScriptFile" as
string

set ([returnVar1, returnVar2]) to (run script file (theScriptFile) with
parameters ([localDisk])

----

or you can just run it without any parameter or return vars:
--
run script file (theScriptFile)
--

hope this helps,
Gary.


-----Original Message-----
From: Hans Schoenmaker [mailto:email@hidden]
Sent: 29 November 2002 08:38
To: email@hidden
Subject: Scripting Applescript itself


Hi guys,


I've generated textfiles from a database.
These files are Applescripts in text format.


I want to run these "scriptfiles" automatically by using an other
applescript with;


tell theScriptFile to run



As far as I know it can only "RUN" compiled scripts.
So I need to compile these databasefiles first, am I wrong?


And If i'm wrong about compiling them first, how can i run them??


If there is way to automated the process of compiling them,
how would i do that?



Hans Schoenmaker
email@hidden

The Netherlands
_______________________________________________
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.


This E-Mail and any attachment is intended only for the person or entity for
which it is addressed and may contain confidential material. If you are not
the addressee or have received this E-Mail in error, please inform the
sender immediately and delete it from your computer. In addition, if you are
not the addressee or have received this E-Mail in error, any disclosure,
copying, distribution or any action taken or omitted to be taken in reliance
upon it is prohibited and may be unlawful.
If this E-Mail has been transmitted outside the ordinary course of its
business, the company for which the sender works accepts no liability for
any loss or damage suffered by any person arising from any use of or
reliance on information contained in this E-Mail, and any opinion expressed
in this E-Mail is personal to the sender and may not reflect the opinion of
such company. Although the network operator makes every reasonable effort to
keep its network free from viruses, neither the network operator nor the
sender or the company for which the sender works accepts any responsibility
for computer viruses transmitted through this E-Mail or any attachments; it
is your responsibility to virus scan this E-Mail and any attachments. Any
E-Mail reply to this address may be subject to interception or monitoring
for operational reasons or for lawful business practices.
_______________________________________________
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: Re: Scripting Applescript itself
  • Next by Date: Re:Applescript to export Quicktime movies
  • Previous by thread: Re: Scripting Applescript itself
  • Next by thread: Changing creator code...
  • Index(es):
    • Date
    • Thread