• 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: Prevent asking to locate application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Prevent asking to locate application


  • Subject: Re: Prevent asking to locate application
  • From: Walter Ian Kaye <email@hidden>
  • Date: Sun, 28 Mar 2004 19:33:38 -0800

At 08:39p -0600 03/28/2004, Joseph Weaks didst inscribe upon an electronic papyrus:

Hanaan,
You're not understanding the whole issue, so let me restate. I want to
send a script to other users for them to use. They provide the name of
the app in a dialog and then the script does it's stuff in that app
when the time comes to paste result in a word processor.

What if they misspell it? How will your script know what they meant?

I want to suppress the asking to locate an app altogether, no matter
what clever alias name you've given it.
Although, I use a variation of what you mentioned to my advantage at
another place. I created an empy applet called "the application you
want to use" so that it prompts the user:
"Find the application you want to use." hehe.

Well you will need either some sort of picklist, or hard-code everything.
You gave the example of "Microsoft Word" and "AppleWorks". Using that example, behind the scenes you could have the following:

if appChoice is "Microsoft Word" then
ActivateApp("MSWD")
else if appChoice is "AppleWorks" then
ActivateApp("BOBO")
end if

on ActivateApp(sig)
tell application "System Events"
set frontmost of (process 1 whose creator type is sig) to true
end tell
end ActivateApp


-boo
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Prevent asking to locate application
      • From: Joseph Weaks <email@hidden>
References: 
 >Prevent asking to locate application (From: Joseph Weaks <email@hidden>)
 >Re: Prevent asking to locate application (From: Hanaan Rosenthal <email@hidden>)
 >Re: Prevent asking to locate application (From: Joseph Weaks <email@hidden>)

  • Prev by Date: Re: Prevent asking to locate application
  • Next by Date: Re: AppleScript & HTML Again...
  • Previous by thread: Re: Prevent asking to locate application
  • Next by thread: Re: Prevent asking to locate application
  • Index(es):
    • Date
    • Thread