• 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: Forcing 'tell app' to use carbon, rather than classic app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Forcing 'tell app' to use carbon, rather than classic app


  • Subject: RE: Forcing 'tell app' to use carbon, rather than classic app
  • From: David Cramer <email@hidden>
  • Date: Sat, 11 Jan 2003 21:10:44 -0600

From: David Cramer <email@hidden>

As a right newbie, I was similarly baffled this morning when looking at a little AS application that created an HTML document and automatically called on a specified browser to open it. The script used the 'file id "MSIE"' syntax to run Internet Explorer. I wanted to change it to Chimera, but Chimera's a package and thus has no creator type. What is the OS X way of doing this?


Try this:

tell application "Finder" to application file id "CHIM" as text
info for result

Thanks, Philippe. It works great!

By the way, here's the code I was talking about. It's from a script associated with AWPSCalendarMaker by H Sanderson under the GNU general public license, after I changed the code to work with Chimera:

--****************************

--this script handles the processFile(fileAlias) message sent by AWPSCalendarMaker applet, allowing users to post-process or handle the generated calendar file as required

on processFile(fileAlias)
-- attempt to open html file in Explorer
try
tell application "Finder"
set theBrowser to application file id "CHIM" -- (Chimera)
open fileAlias using theBrowser
end tell
on error
beep
end try
end processFile

--****************************


Now my question is, how do you find out the file id of a package?



Kind regards,
Philippe Gruchet/SVM Mac
VNU Publications France
http://svmmac.vnunet.fr


--
Regards,

David Cramer


*//////////////////\\\\\\\\\\\\\\\\\\\*//////////////////\\\\\\\\\\\\\\\\\\\*
* DOCUMENTS AND MORE * Winnipeg, Manitoba, Canada *
* "Intelligent digital design, * Tel: (204) 772-9284 *
* layout & publishing solutions" * Fax: (204) 774-5884 *
*//////////////////\\\\\\\\\\\\\\\\\\\*//////////////////\\\\\\\\\\\\\\\\\\\*
_______________________________________________
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.

References: 
 >RE: Forcing 'tell app' to use carbon, rather than classic app (From: Philippe GRUCHET <email@hidden>)

  • Prev by Date: Fwd: Union of sets (lists
  • Next by Date: Re: Union of sets (lists
  • Previous by thread: Re: [OFF] ... sort of ...
  • Next by thread: Re: Forcing 'tell app' to use carbon, rather than classic app
  • Index(es):
    • Date
    • Thread