• 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: simple applescript problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: simple applescript problem


  • Subject: Re: simple applescript problem
  • From: Dave Lyons <email@hidden>
  • Date: Fri, 4 Nov 2005 20:07:00 -0800

tell application "DVD Player"
	open VIDEO_TS alias "Sources:VIDEO_TS:"
	play dvd
end tell

The DVD Player scripting dictionary says:
open VIDEO_TS file specification : file reference to VIDEO_TS folder

The trouble was that you had a "string" following "open VIDEO_TS", but a string isn't a file specification.


Cheers,

--Dave

On Nov 4, 2005, at 7:50 PM, mark orourke wrote:
Hi all,
my first attempts at applescript and I am having problems.

Trying to open a VIDEO_TS folder with DVD player. File opens and works
OK from within DVD player but using the following applescript comes up
with error "Can't make some data into the expected type" after the DVD
player has launched-is my filepath right?

tell application "DVD Player"
  open VIDEO_TS "Macintosh HD:video:VIDEO_TS"
end tell

Hope to have help soon!
Thanks,  mark

_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >simple applescript problem (From: mark orourke <email@hidden>)

  • Prev by Date: simple applescript problem
  • Next by Date: Re: making applescript wait until shell script finishes
  • Previous by thread: simple applescript problem
  • Next by thread: Any applescript to do this?
  • Index(es):
    • Date
    • Thread