• 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
property of a folder action script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

property of a folder action script


  • Subject: property of a folder action script
  • From: "IP Indu Pillai (2611)" <email@hidden>
  • Date: Tue, 11 Sep 2001 09:04:43 -0400

> Hello:
>
> I am new to applescript and this is my first attempt to do something with
> it. I need to write a folder action script which will create a set of
> folders once everyday. Subsequent executions should skip the 'creating
> folders' part of the script. I tried to do this by saving a date property
> and comparing it with current date.
>
> property mydate: date "12/12/60"
>
> on adding folder items to this_folder after receiving added_items
> display dialog "" & mydate -- I put this for debugging
>
> if mydate is not equal to current date
> ..... -- create the folders
>
> end if
> ....
> ....
> set mydate to current date
>
> end adding folder items to
>
> My problem is that I am not able to get the previous value of mydate in
> the next execution of the script, this means the date is getting
> initialized to "12/12/60" every time. Am I overlooking something? Is there
> anything I am doing wrong? I double checked everything in the script, and
> I found that if I run the same script as an applet, the property holds the
> previous value. Any suggestions will be appreciated.
>
> Thank you,
>
> Indu Pillai


  • Follow-Ups:
    • Re: property of a folder action script
      • From: Mr Tea <email@hidden>
  • Prev by Date: Re: OT AETE? How can I read these
  • Next by Date: Re: OT AETE? How can I read these
  • Previous by thread: Re: Reality Checked (Argh! Down with Reality!)
  • Next by thread: Re: property of a folder action script
  • Index(es):
    • Date
    • Thread