RE: Forcing 'tell app' to use carbon, rather than classic app
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.