• 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
Issue with AS variable in OS 10.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Issue with AS variable in OS 10.2


  • Subject: Issue with AS variable in OS 10.2
  • From: "francois.houle" <email@hidden>
  • Date: Thu, 24 Mar 2005 08:26:47 -0500

Hi all,

I have a script that I originally setup in panther, but also wanted to have
it work on 10.2. So since it basically was setting a variable to the result
of a "do shell scrip", I thought it would be rather easy...
So I modified the command and tested it in the Terminal... Works beautifully
and gives me what I want as a result in the terminal... However, the moment
I out it in the AS as following

set the folder_size to do shell script "du -s /Volumes/servername | sed
s'=/Volumes/servername=='"
if folder_size is greater than 0 then
blablabla
end if

When I attempt to run the script in 10.2.8 it automatically returns that the
variable folder_size is not defined... It does compile properly and run
properly in the terminal... Also works properly in Panther... Anyone have an
idea why 10.2 doesn't ? Are there differences which I have not forseen
betwen 10.2 and 10.3 when setting variables ? I can't see any in the
dictionaries...


Frank

 _______________________________________________
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: Issue with AS variable in OS 10.2
      • From: Axel Luttgens <email@hidden>
    • Re: Issue with AS variable in OS 10.2
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Pref. pane (need more help)
  • Next by Date: Re: Issue with AS variable in OS 10.2
  • Previous by thread: Re: Pref. pane (need more help)
  • Next by thread: Re: Issue with AS variable in OS 10.2
  • Index(es):
    • Date
    • Thread