• 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: Deploy compiled AppleScript not work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deploy compiled AppleScript not work


  • Subject: Re: Deploy compiled AppleScript not work
  • From: Gary Bielby <email@hidden>
  • Date: Fri, 02 Jun 2006 13:09:34 +0100

Hi Chen,
If you are trying to run scripts with the application installed in different places you can get around it like so:


OS9 way:

   try
       tell application "Finder"
           set appName to name of application file id "MSIE"
       end tell
   on error errMsg
       display dialog (errMsg) as string
   end try

Then you can ref that application like:

    tell appName
         // do something
    end tell

And if you add a

on run

end run

around the code you don't even need to compile it... just save as text and do something like

run script file (filename)

Regards, Gary.

**

Rob Stott wrote:

On 31 May 2006, at 22:21, Chen Wang wrote:

it keeps asking me where is the application “Microsoft Word”

Hi Chen,

At the risk of stating the obvious, you did remember to reinstall Microsoft Word, didn't you?

r.

---

Rob Stott
Systems Developer

Trident UK
Connaught Road, Kingswood, England HU7 3AP
Switchboard: +44 1482 828100
Fax: +44 1482 710600


This email message and all documents which accompany it are intended only for the use of the individual or entity to which addressed, and may contain privileged or confidential information. Any unauthorised disclosure or distribution of this email message is prohibited. If you have received this email message in error, please notify the sender and delete this from all computers.



------------------------------------------------------------------------

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Deploy compiled AppleScript not work
      • From: Gary Bielby <email@hidden>
References: 
 >Re: Deploy compiled AppleScript not work (From: Rob Stott <email@hidden>)

  • Prev by Date: Re: Deploy compiled AppleScript not work
  • Next by Date: Re: Deploy compiled AppleScript not work
  • Previous by thread: Re: Deploy compiled AppleScript not work
  • Next by thread: Re: Deploy compiled AppleScript not work
  • Index(es):
    • Date
    • Thread