• 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: Code for applications not already installed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Code for applications not already installed


  • Subject: Re: Code for applications not already installed
  • From: jj <email@hidden>
  • Date: Tue, 01 Feb 2005 09:23:28 +0100

>
> On Jan 31, 2005, at 4:16 PM, Robert DeLaurentis wrote:
>
>> I have several code snippets for applications that are not on my
>> system.
>>
>
> The basic goal is simple: I have a script that needs to run on machines
> where one of several email clients is likely to be found. The script is
> controlled by a user preference as to which client to use, so code for
> a different client will never execute. However, I cannot get the script
> to compile because of the missing applications.

Sure, if you only have a bunch of text (that is, uncompiled applescript
code), you need the app or at least its dictionary to compile it.

> Would it work if I stored the code for each email client in a script
> text file, then load it load script? Or is there a better way? Can I
> 'hide' the offending code with a double tell? This doesn't have to be
> pretty, it just as to be quick and easy to implement.

Depending on the target OS, I think the best option is:

#######################
run script (read file x)
#######################

Or, if it is not very long:

#######################
property scpt : "beep"

run script scpt
#######################


jj

--
http://www.macscripter.net/
http://www.osaxen.com/


 _______________________________________________
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

  • Next by Date: Re: Labelling identically-named files in two Finder folders
  • Next by thread: Re: Labelling identically-named files in two Finder folders
  • Index(es):
    • Date
    • Thread