• 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: Set File Creation date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Set File Creation date


  • Subject: Re: Set File Creation date
  • From: Doug McNutt <email@hidden>
  • Date: Sat, 18 Dec 2004 09:08:39 -0700

At 10:56 +0100 12/18/04, Axel Luttgens wrote:
>So, if you have installed the Developer Tools, you may use their "SetFile" command.

There is also Apple's MPW, now a free download for the classic OS only, which offers the original setfile command. MPW has its own scripting language, its own commands, but you can execute a simple AppleScript "tell" to run a prepared text file as a script.

help setfile
SetFile         # set file/folder attributes
SetFile [optionŠ] file/folderŠ
    -a attributes           # attributes (lowercase = 0, uppercase = 1)*
    -c creator              # file creator
    -comments text          # put "text" in the "Get Info" comments field
    -d date                 # creation date (mm/dd/[yy]yy [hh:mm[:ss] [AM | PM]])*
    -l h,v                  # ICON location (horizontal,vertical)*
    -m date                 # modification date (mm/dd/[yy]yy [hh:mm[:ss] [AM | PM]])*
    -noResolve              # don't resolve aliases on the input file path
    -t type                 # file type

    Note: Period (.) represents the current date and time.

    Note: [yy]yy < 100 assumes 20th century, e.g. 19yy

    Note: The following attributes may be used with the -a option:
        A   Alias file
        V   Invisible*
        B   Bundle
        S   System (name locked)
        T   Stationary
        C   Custom icon*
        L   Locked
        I   Inited*
        N   No INIT resources
        M   Shared (can run multiple times)
        W   Always switch launch (if possible)
        D   Desktop*

    Note: Options/attributes marked with an asterisk (*) are allowed with folders

At 23:25 -0800 12/17/04, Paul Berkowitz wrote:
>You can use 'read' to read the file, (and then) write the result to a new file opened
>for access,

That will not copy the resource fork which you may well need it if you're doing things like this:
.
At 16:10 +0100 12/18/04, Gmeiner wrote:
>I am desperately trying to recover all sorts of old files created with  Appleworks under PRODOS on Apple IIe til Apple gs, which I saved on 3.5  diskettes.


--

Applescript syntax is like English spelling:
Roughly, but not thoroughly, thought through.
 _______________________________________________
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

References: 
 >Set File Creation date (From: Gnarlodious <email@hidden>)
 >Re: Set File Creation date (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: Set File Creation date
  • Next by Date: Play Sound
  • Previous by thread: Re: Set File Creation date
  • Next by thread: Re: Set File Creation date
  • Index(es):
    • Date
    • Thread