• 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: can't find error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can't find error


  • Subject: Re: can't find error
  • From: "Stockly, Ed" <email@hidden>
  • Date: Fri, 13 Feb 2015 23:18:30 +0000
  • Thread-topic: can't find error

On 2/4/15, 11:02 AM, "Robert Poland" <email@hidden> wrote:

>But when as part of the larger script I get the error ³The variable
>processlist is not defined².

On 2/4/15, 11:12 AM, "Stockly, Ed" <email@hidden> wrote:

>I seem to remember an issue where a variable could become "undefined" if
>it's set to something like a missing value. Anyone?


This is what I was remembering:
---
tell application "Finder"
  set myLocation to (container of (path to me)) as alias
  set myFolder to ""
  set myFolder to open myLocation
  return myFolder
end tell

‹‹‹


Setting a variable to a command that does not return a result, makes the
variable undefined. It should trip an error no?

Bug?

ES



 _______________________________________________
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


References: 
 >can't find error (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: Save Without Dialog
  • Next by Date: Basic Script in DT Pro
  • Previous by thread: Re: can't find error
  • Next by thread: Re: can't find error
  • Index(es):
    • Date
    • Thread