• 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: Delivery Status Notification (Delay)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Delivery Status Notification (Delay)


  • Subject: Re: Delivery Status Notification (Delay)
  • From: Robert Poland <email@hidden>
  • Date: Thu, 21 Oct 2010 12:11:24 -0600


On Oct 21, 2010, at 11:45 AM, Deivy Petrescu wrote:


On Oct 21, 2010, at 9:28 AM, Robert Poland wrote:

Thanks Brian,

But the question was directed to Smile not Script Editor.


On Oct 21, 2010, at 7:21 AM, Brian Christmas wrote:

G'day Robert

Works fine for me, using 10.6.4 and the 'run' button in script editor

Regards

Santa

global a
set a to (short date string of (current date))
my thisTime()

on thisTime()
display dialog a
end thisTime


Bob,
It works as expected in Smile.
It will not work in  Smile's terminal because of the way Smile's  terminal is set.
Each line can be run independently.

If you run the script you posted in Smile's terminal the way you posted it, you will get an error,  "thisTime() blah blah"
This because thisTime() is called before being defined.

So if you run

on thisTime()
display dialog a
end thisTime

before the script, then it kinds of get dissociated from the script and it will not know that a and a are the same a.... :)
You can run in Script mode however.



Deivy Petrescu
email@hidden

Deivy,

ALL combinations seem to run without a problem.

The question is why when I validate the scripts in script mode or terminal mode do I get the two errors.

 -- Undefined variables:

show window "untitled 3" selection {102, 103} -- undefined var: a
 -- display dialog a

----------------------------------------------------
 -- Unused variables:

show window "untitled 3" selection {14, 15} -- unused var: a
 --  set a to (short date string of (current date))



Robert Poland - Fort Collins, CO



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Delivery Status Notification (Delay)
      • From: Deivy Petrescu <email@hidden>
References: 
 >Fwd: Delivery Status Notification (Delay) (From: Robert Poland <email@hidden>)
 >Re: Delivery Status Notification (Delay) (From: Brian Christmas <email@hidden>)
 >Re: Delivery Status Notification (Delay) (From: Robert Poland <email@hidden>)
 >Re: Delivery Status Notification (Delay) (From: Deivy Petrescu <email@hidden>)

  • Prev by Date: Re: Delivery Status Notification (Delay)
  • Next by Date: Scripting and Back to Mac
  • Previous by thread: Re: Delivery Status Notification (Delay)
  • Next by thread: Re: Delivery Status Notification (Delay)
  • Index(es):
    • Date
    • Thread