Wednesday, 21 May 2014

Apple Script Help


so here program (red)
display dialog "t.a.r.d.i.s controll panel" buttons {"fly", "land"} default button 2
if button returned of result "land" then
display dialog "flight aborted"
else
end
display dialog "t.a.r.d.i.s companion chooser" buttons {"amy pond", "martha jones"} default button 2
if button returned of result "amy pond" then
display dialog "allons-y"
tell application "itunes"
play playlist "doctor who"
end tell
else
display dialog "allons-y"
tell application "itunes"
play playlist "doctor who1"
end


can 1 tell me what's wrong
 

try this.

take @ applescript examples when in doubt. notice red lines.

code:
display dialog "t.a.r.d.i.s controll panel" buttons {"fly", "land"} default button 2 if button returned of result "land" 	display dialog "flight aborted" else display dialog "t.a.r.d.i.s companion chooser" buttons {"amy pond", "martha jones"} default button 2 if button returned of result "amy pond" 	display dialog "allons-y" 	tell application "itunes" 		play playlist "doctor who" 	end tell else 	display dialog "allons-y" 	tell application "itunes" 		play playlist "doctor who1" 	end tell [color="red"]end if[/color] [color="red"]end if[/color]
i think intended code
 


Forums Special Interests Design and Graphics


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

No comments:

Post a Comment