• 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: Applscript changes in 9.1 technotes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applscript changes in 9.1 technotes


  • Subject: Re: Applscript changes in 9.1 technotes
  • From: John W Baxter <email@hidden>
  • Date: Sat, 20 Jan 2001 16:28:53 -0800

At 12:42 +0000 1/20/01, Nigel Garvey wrote:
>[Lots of welcome fixes and new features. :-)]
>
>>>tell application "Finder"
>>> set the backup_list to every item of the startup disk whose -
>>> creation date is greater than the (current date)
>>>end tell
>
>It even finds files that haven't been created yet? Fantastic! ;-)

Happens every year at the end of Summer Time.

This script will show that Finder knows what "tomorrow" is, and also
provides a file for the above example to find:

Happens every year at the end of Daylight Saving Time (Summer Time).

And this script demonstrates that Finder knows what "tomorrow" is (and
makes a file which the snippet would find):

property aFolderName : "Date Test"
tell application "Finder"
(* Handy for testing but too dangerous to post
if folder aFolderName of startup disk exists then
delete folder aFolderName of startup disk
end if
*)

set finderFolder to make new folder at startup disk with properties
{name:aFolderName} --unwrap line
set view of container window of finderFolder to name
end tell

set theFolder to (path to startup disk as string) & aFolderName
set theFile to theFolder & ":Time Flies"
open for access file theFile with write permission
write "Whee!" to file theFile
close access file theFile

tell application "Finder"
set modification date of alias theFile to ((current date) + 1 * days)
activate
open finderFolder
end tell
--
John Baxter email@hidden Port Ludlow, WA, USA


References: 
 >Re: Applscript changes in 9.1 technotes (From: Nigel Garvey <email@hidden>)

  • Prev by Date: Re: I want to compare two AppleWorks files
  • Next by Date: Re: Startup Disk and other oddities
  • Previous by thread: Re: Applscript changes in 9.1 technotes
  • Next by thread: Re: Binary [was Re: ASCII]
  • Index(es):
    • Date
    • Thread