UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 21st, 2012, 02:46 PM
nojohnny101 nojohnny101 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2012
Posts: 1 nojohnny101 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 14 sec
Reputation Power: 0
Unix command help!

hey
i could really use some help here! i just can't figure this out and full disclosure i'm a newbie when it comes to these things.

here is the unix command that i am issuing through ARD

osascript <<EndOfMyScript
tell application "System Events"
tell application process "loginwindow"
key code 125
delay .5
key code 125
delay 1
keystroke return
delay 2
keystroke "2634"
keystroke return
end tell
end tell
delay 2
tell application "Gaming Introduction 30m"
activate
end tell
EndOfMyScript


two problems:

1) the application "Gaming Introduction 30m" launches fine but it doesn't come to the front and the icon bounces in the dock instead of bringing the dialogue box that is supposed to pop up to the forefront. is this a "focus issue" or something of that nature?

2) the command never seems to finish in ARD, it never completes. it is like it is stuck on something. why doesn't the unix command finish in ARD when once the "Gaming Introduction 30m" has finished launching?

here is the script code for the "Gaming Introduction 30m"

delay 2
on box()
set done to false
set question to display dialog "Have you been to Vantage before?" buttons {"Yes", "No"}
set answer to button returned of question
if answer is equal to "No" then
tell application "QuickTime Player"
activate
open "/Gaming Introduction.mp4"
present document 1
delay 2
tell application "System Events"
keystroke " "
end tell
end tell
delay 178
tell application "QuickTime Player"
quit
end tell
delay 1
tell application "Gaming Introduction" to activate
set question to display dialog "Do you want to watch the video again?" buttons {"Yes", "No"}
set answer to button returned of question
if answer is equal to "Yes" then
tell application "QuickTime Player"
activate
open "/Gaming Introduction.mp4"
present document 1
delay 2
tell application "System Events"
keystroke " "
end tell
delay 178
tell application "QuickTime Player"
quit
end tell
end tell
end if
end if
tell application "Menubar Countdown"
activate
delay 0.5
tell application "System Events"
keystroke tab
end tell
delay 0.2
tell application "System Events"
keystroke "30"
end tell
delay 0.2
tell application "System Events"
keystroke tab
end tell
delay 0.2
tell application "System Events"
keystroke "00"
end tell
delay 0.2
tell application "System Events"
keystroke return
end tell
end tell
end box

box()

i would really appreicate any help, advice or hints!
thanks so much!

peace will

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > Unix command help!

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap