FROM REV to APPLESCRIPT

paolo mazza mazzapaolo at libero.it
Thu Aug 15 03:01:00 EDT 2002


Thank you for your help. Using appleScript I was able to "drive" Quicktime
and produce quicktime movies from Rev. Great.
Then, I have another question.
Is there in Windows something similar to Applescript?
How can I "drive" quicktime from Rev in Windows?


 
> Message: 4
> Date: Mon, 12 Aug 2002 10:22:47 +1000
> Subject: Re: FROM REV to APPLESCRIPT
> From: Sarah <sarahr at genesearch.com.au>
> To: use-revolution at lists.runrev.com
> Reply-To: use-revolution at lists.runrev.com
> 
> Here's how I do it:
> 
> Write your AppleScript & test it in the AppleScript editor with fake
> data in your variables.
> Copy the script and put it into a custom property somewhere in your
> stack.
> Edit the script to put placeholders where you variables will go
> e.g. put **var1** into asVar1
> where **var1** represents your Rev data and asVar1 is the variable name
> used by the AppleScript
> 
> Then in your Rev script do the following:
> 
> put the cScriptProperty of me into theScript
> replace "**var1**" with field "my Variable" in theScript
> -- repeat this for all your variables
> do theScript as AppleScript
> 
> The HyperCard method suggested will not work as it relies on the fact
> that HyperCard itself is AppleScriptable, while Revolution is not.
> 
> Sarah
> 
> 
> On Friday, August 9, 2002, at 06:59  pm, paolo mazza wrote:
> 
>> How can I set the value of a  variable in an Applescript piece of code
>> to a
>> field of a stack in REV?
>> Am I supposed to use the clipboard?
>> Thanks, Paolo
>> 
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>> 
> 
> 
> Message: 8
> Date: Sun, 11 Aug 2002 22:03:12 -0500
> To: use-revolution at lists.runrev.com
> From: Brad Allen <BradAllen at mac.com>
> Subject: Re: FROM REV to APPLESCRIPT
> Reply-To: use-revolution at lists.runrev.com
> 
>> do theScript as AppleScript
> 
> I'd like to further add to what Sarah said, that it's easy to go the
> other way and have Rev obtain a value from an Applescript. At the
> points where your Applescript might end, use the return command to
> return a value to Rev, as in:
> 
> try
> doSomething
> set foo to whatever
> on error myError
> return myError
> end try
> return whatever
> 
> After Rev executes this Applescript, it will populate the Result with
> the returned value from Applescript, as in:
> 
> do theScript as Applescript
> put the result into theScriptResult
> 
> 
>
> Message: 10
> From: "Ken Ray" <kray at sonsothunder.com>
> To: <use-revolution at lists.runrev.com>
> Subject: Re: FROM REV to APPLESCRIPT
> Date: Sun, 11 Aug 2002 22:52:06 -0600
> Reply-To: use-revolution at lists.runrev.com
> 
>> If there's any further information or examples out there (or in the
>> documentation) about integrating AS with RR, could someone please point me
>> to it?
> 
> Nick,
> 
> You could take a look at the Tips page on my site... there are a couple of
> AppleScript examples there:
> 
> http://www.sonsothunder.com/devres/revolution/revolution.htm
> 
> Ken Ray
> Sons of Thunder Software
> Email: kray at sonsothunder.com
> Web site: http://www.sonsothunder.com/
> 
>> 
>> My main interest at this stage would be in using RunRev as a front end
> that
>> can launch/run applescripts and pass information entered by the user to
>> them.
>> 
>> Thanks
>> 
>> 
>> Nick
>> --
>> "Always remember to warm the pot."
>> 
>> 
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>> 
> 
> 
> --__--__--
> 
> Message: 11
> Date: Mon, 12 Aug 2002 15:33:08 +1000
> To: use-revolution at lists.runrev.com
> From: "Michael J. Lew" <michaell at unimelb.edu.au>
> Subject: Re: Revolution to author and present multimedia content?
> Reply-To: use-revolution at lists.runrev.com
> 
> I'm thrilled to hear that someone would like to replace PowerPoint
> with a Revolution-based application!
> 
> I have been lecturing using PowerPoint in combination with Revolution
> and Hypercard for many years, with Revolution and Hypercard-based
> animations and simulations to spice up the material and make some
> concepts more accessible. Several of my computer-aided learning
> modules (CALs) that are in use in courses here have been made with
> Revolution and it is helpful to the students to see snippets of those
> modules used in a lecture prior to the students exploring the CALs
> themselves.
> 
> After some frustrations resulting from upgrading PowerPoint to the
> most current version, I have very recently decided that it would be
> worthwhile making a Revolution application to replace PowerPoint for
> my own use (my preliminary stack is called 'Get to the point!). If
> Joao, and maybe others, is thinking along the same lines then maybe
> we could make it into a collaborative project. I have so made a
> useable (but not bug-free) automated 'dot-point' field template. and
> have fiddled with making cards grow to fill the screen with text
> being scaled appropriately. No real difficulties in those.
> 
> I have mentioned my aspirations to some colleagues at my university
> and their response is generally unencouraging. They feel that
> PowerPoint is a huge application that has been developed my large
> numbers of programmers for many years: true enough, but in that
> context it is interesting to contemplate the quality of their product
> ;->
> 
> I believe that a project to make a PowerPoint replacement could be
> surprisingly manageable. First, PowerPoint is mostly bloat and
> flashy, but useless features. Many users regularly choose to use
> outside applications for things that PowerPoint could do (e.g.
> outlining and drawing) so there is no need to replicate those
> 'features'. Secondly, many of the features that would be needed are
> already built into Revolution. For example, the geometry manager is
> useful switching from edit mode to full-screen mode and the backdrop
> property can instantly deal with any mis-match between stack and
> screen proportions. Groups are a natural way to deal with the variety
> of slide templates. Slide transitions are built in. Image importing
> needs only a convenient way to get images from the clipboard.
> Animations are readily constructed using the animations manager.
> Basically, the similarity of the card and slide metaphors is such
> that using Revolution to make slideshows is a natural.
> 
> Importantly, in order to be useful to those like me who already code
> in Revolution, the project needs only to supply some templates and
> standard slide components and behaviours; the rest can be scripted
> directly in Revolution. Thus such a project can be useful even at a
> minimal stage of development. Extra capabilities can always be added
> by anyone who has Revolution because the project would be naturally
> modular.
> 
> In my imagination we will end up with a standalone application that
> makes and displays slideshows just like PowerPoint, and a version
> that runs within Revolution that will make open-ended multimedia
> presentations convenient for Revolutions scriptors.
> 
> Anyone keen to help?
> 
> -- 
> Michael J. Lew
> 
> Senior Lecturer
> Department of Pharmacology
> The University of Melbourne
> Parkville 3010
> Victoria
> Australia
> 
> Phone +613 8344 8304
> 
> **
> New email address: michaell at unimelb.edu.au
> **
> 
> 
> --__--__--
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> End of use-revolution Digest




More information about the Use-livecode mailing list