Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Deploy compiled AppleScript not work



Thanks Laine for the very very useful command line for refreshing the launch services database! 

- Chen

>> I guess that the line Œtell application ³Microsoft Word²¹ is somehow
 hard-coded during the compilation process into a *.scpt file. If so, how can I
 deploy a run-only *.scpt file which will be used on different computers?

>Sounds to me like your launch services database didn't get updated correctly
after your reinstallation. You probably don't want to reinstall again just
to test it, but I guess you could update it before you run your script with
a shell script like:

>/System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchSe
rvices.framework/Support/lsregister \ -kill -r -domain local -domain system
-domain user

-- 
Laine Lee

Confidentiality Notice:  This e-mail, including any attachments, is for the sole use of the intended recipient(s) and may contain private, confidential, and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient or this information has been inappropriately forwarded to you, please contact the sender by reply e-mail and destroy all copies of the original.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.