• 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: Calling applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling applications


  • Subject: Re: Calling applications
  • From: Duncan Cowan <email@hidden>
  • Date: Sat, 01 Feb 2003 15:35:55 +1100

Oh that's pretty good!

It occurred to me that you could create a generic handling script this way.

on open theFile
tell application "Finder"
set fileType to creator type of theFile
set appName to name of application file id fileType
end tell
if appName = "FH80" then
(* ?? load a script to handle this file type, passing the variable
appName along if needed *)
else
if appName = "8BIM" then
(* ?? tell the application to do something with the file? *)
end if
end if
end open

I like it . . .





From: julifos <email@hidden>
Date: Fri, 31 Jan 2003 19:41:47 +0100
To: applescriptmaillist <email@hidden>
Subject: Calling applications

This should be good enough:

tell application "Finder"
set Quark to name of application file id "XPR3"
end tell

tell application Quark
-- do whatever
end tell
_______________________________________________
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.

  • Prev by Date: Re: iTunes -- Remove Missing Tracks?
  • Next by Date: Re: referencing a variable from another?
  • Previous by thread: Re: iTunes -- Remove Missing Tracks?
  • Next by thread: RE: Calling Applications
  • Index(es):
    • Date
    • Thread