Advertisement

09.07.2008 at 01:07AM PDT, ID: 23709788 | Points: 500
[x]
Attachment Details

Basic AppleScript Question

Asked by shacho in AppleScript, Apple Operating Systems, Apple

This script works:

tell application "QuickTime Player"
      set sound volume of document 1 to 0
end tell


This does not:

set QT to application ("Quicktime Player")
tell QT
      set sound volume of document 1 to 0
end tell

It tells me "the variable volume is not defined"  I seem to be overlooking some fundamental rule of AppleScript syntax.  Can somebody explain to me what the problem is?

MikeStart Free Trial
[+][-]09.08.2008 at 03:23AM PDT, ID: 22415908

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]09.11.2008 at 05:30AM PDT, ID: 22448912

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]09.15.2008 at 05:35AM PDT, ID: 22477904

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.16.2008 at 03:11AM PDT, ID: 22486649

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.16.2008 at 05:49AM PDT, ID: 22487789

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_2_20070628