Re: Duplicating files from path
Re: Duplicating files from path
- Subject: Re: Duplicating files from path
- From: Phil Burk <email@hidden>
- Date: Tue, 20 Feb 2001 16:30:07 -0500
Stephen,
My bad. I forgot to mention that I'm using the Date Format OSAX. If you
don't have it, that's why you're getting the error. Also, I'm on OS 9.1.
Phil
on 2/20/01 4:24 PM, Stephen Swift (aka Burnum) at email@hidden wrote:
>
At 2/20/01 11:57 AM, Phil Burk (email@hidden) Wrote:
>
>
> global theDate
>
> global theList
>
> global theSource, Dest1, Dest2, Destination1
>
> set theList to ""
>
>
>
> set todaysDate to (current date)
>
> set {d, m, y} to {day, month, year} of todaysDate
>
> set monthList to {January, February, March, April, May, ,
>
> June, July, August, September, October, November, ,
>
> December}
>
> repeat with i from 1 to 12
>
> if m = (item i of monthList) then
>
> set monthString to text -2 thru -1 of ("0" & i)
>
> exit repeat
>
> end if
>
> end repeat
>
> set dayString to text -2 thru -1 of ("0" & d)
>
> set todaysDate to dayString & "/" & monthString & "/" & y
>
>
>
> set theDate to format date (current date) with format "%m-%d-%y"
>
> set file_ref to open for access file (("OS 9 (disk 1):Desktop Folder:" &
>
> "Source " & theDate) as string) with write permission
>
> write (return & (current date)) to file_ref starting at eof
>
> close access file_ref
>
>
I've playing around with date scripts and when I saw this, I decided to load
>
it. AppleScript didn't like the line (It had a problem with the 'with
>
format' section)
>
set theDate to format date (current date) with format "%m-%d-%y"
>
--Expected variable, class, or parameter name but found command name
>
>
Was the 'with format' added on to AS capability with Mac OS 8.5 or later? I
>
have Mac OS 8.1 (AS 1.1.2). And I'm guessing that's the problem. Thanks.
>
>
Stephen Swift ?' (The Burnum Man)
>
email@hidden
>
It9s Coming Back! AppleInfo.net - Check Back Soon
>
-----------------------------------------------
>
"One of the deep mysteries to me is our logo, the symbol of lust and
>
knowledge, bitten into and crossed with the colors of the rainbow in the
>
wrong order. You couldn't dream of a more appropriate logo: lust,
>
knowledge, hope, and anarchy." -Jean-Louis Gassie, President of Apple
>
Products
>
----------------------------------------------------------------------------
Phil Burk
DesktopMedia, Inc.
email@hidden
"Let us all be happy, and live within our means, even if we have to borrow
money to do it with."
- Artemus Ward, "Artemus Ward in London" (1872)