Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > How to merge two scripts?

How to merge two scripts?
Thread Tools
Fresh-Faced Recruit
Join Date: Aug 2009
Status: Offline
Reply With Quote
Aug 13, 2009, 02:33 PM
 
Hi
I have two separate scripts that work separately. Also they can run at the same time perfectly. From some strange reason I can’t make one script that do both.
I have to find a way to combine them together and run it as a single app.
Thanks for the help.

This is the script#1

repeat
tell application “IndigoServer”
Do something …
end tell
end repeat

This is the script#2

tell application “QuickTimePlayer”
open “Macintosh HD:Movie:movie.m4v”
present document 1 display 1
set the looping of document 1 to true
end tell
     
Addicted to MacNN
Join Date: Aug 2004
Location: FFM
Status: Offline
Reply With Quote
Aug 13, 2009, 03:44 PM
 
Since script 1 loops endlessly script two could never run when you paste it after script 1. So just paste script 1 after script two and it should work.
     
Al2009  (op)
Fresh-Faced Recruit
Join Date: Aug 2009
Status: Offline
Reply With Quote
Aug 14, 2009, 11:20 AM
 
Thank you
I'll try that
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:41 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2