• 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
Applications not on client machines and choices
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Applications not on client machines and choices


  • Subject: Applications not on client machines and choices
  • From: "David A. Cox" <email@hidden>
  • Date: Thu, 8 Dec 2005 14:47:12 -0800 (PST)

This must have been dealt with in the past, but I am not sure what search tearms to use, and my blind hunting has not panned out, so I thought I would ask the group.

I am writting an application in AppleScript Studio. It does a bunch of things, one of which is to start recording audio. I do not have the skill set handy to write a built in audio recorder, so I want to give users of the application the choice of using QuickTime Pro, QuickTime Broadcaster, or Audio Hijack Pro to do the recording.

The problem is that when I run the program on a client machine, it requests info on where QuickTime Broadcaster and Audio Hijack Pro are if they are not installed, even if they are not selected as the apps that will be doing the recording. I assume this is so that the application can understand the dictionary terms for the applicaitons. I do not want to have to develop 3 versions of the applicaiton (one for each of the recording options) and so I am contacting you.

A simplified example that shows the problem would be to make a new AppleScript Studio applicaiton in Xcode, and use interface builder to make a windwo with 3 buttons. The applescript names of the buttons would be QTP, QTB, AHP. The buttons all point back to the same script, which is this:

-----------------------
on clicked theObject
if the name of theObject is "QTP" then
tell application "QuickTime Player"
new audio recording
tell  front movie to start
end tell
else if the name  of theObject is "QTB" then
tell application "QuickTime Broadcaster"
start document 1
end tell
else if the name of theObject  is  "AHP" then
tell  application "Audio Hijack Pro"
start hijacking session named "Default System Input"
start recording session named "Default System Input"
end tell
end if
end clicked
-----------------------

I would like to be able to run this on any system that has ANY ONE of the options avaliable, and have it work for that option. Currently, when such an app is launched, it wants to know where ALL of the applications that are scripted are at if it does not find them on the system.

Has anyone worked out a way around this? I got close with some variable setting for the application names, but that did not help once I started to write commands based on items from the applicaitons specific dictionaries. I need to do things that make using "system events" only very hard.

Thanks in advance for any thoughts on this one....

DAC
_______________________________________________
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


  • Follow-Ups:
    • Re: Applications not on client machines and choices
      • From: kai <email@hidden>
  • Prev by Date: Re: Applescript to write answers to individual file names
  • Next by Date: [OT] Is this a record for a mail bounce?
  • Previous by thread: Re: Applescript to write answers to individual file names
  • Next by thread: Re: Applications not on client machines and choices
  • Index(es):
    • Date
    • Thread