• 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: Parents/Child Scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parents/Child Scripts


  • Subject: Re: Parents/Child Scripts
  • From: Andy Wylie <email@hidden>
  • Date: Tue, 14 May 2002 21:42:05 +1200

on 14/5/02 1:56 PM +1200: has wrote:

> Here's another problem example:
>
> on log x
> tell application "Smile" to log x
> end log
>
> So far, so cool. Except... what happens when the user uses 'log' on its
> own, without any argument (it is optional, after all). As I said before,
> there is no good solution to this problem. :(
>
It already exists in Smile ;-> logVar("theVariableAsString")

> p.s. OT aside: your script also reminds me why I never use single,
> real-English words as identifiers. Some osax I've got installed decided
> that the term "message" belonged to it and "helpfully" turned it into
> keyword for me, resulting in a runtime error.

That would be Akua I guess...

display info : Create, update and destroy information windows.
[message string] -- The message(s) to display.

>This is why, in the absence of anything better, I'll prefix any such names with
>"the" - i.e. "theMessage", "theParameters". With all these osaxen around, the
>world isn't a safe place for uncompiled scripts with single-word variable names
> in them...:p
>
underscores can trap you in Tanaka's too...

MT Get Info anything -- File (FileSpec, Alias or Fullpath)
about
creation_date/modification_date/data_size/resource_size/file_type/creator_ty
pe/is_alias/is_stationery/is_locked/is_busy/has_customIcon

how did you get a mention in there?

_____________________________ Andy
_______________________________________________
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.

  • Follow-Ups:
    • Re: Parents/Child Scripts
      • From: has <email@hidden>
    • Quicktime Movies
      • From: Pier Kuipers <email@hidden>
References: 
 >Re: Parents/Child Scripts (From: has <email@hidden>)

  • Prev by Date: Re: Parents/Child Scripts
  • Next by Date: RE: Briskets (perl)
  • Previous by thread: Re: Parents/Child Scripts
  • Next by thread: Quicktime Movies
  • Index(es):
    • Date
    • Thread