Re: Jons Commands (John, Mitchell)
Re: Jons Commands (John, Mitchell)
- Subject: Re: Jons Commands (John, Mitchell)
- From: "Jens Eliasson" <email@hidden>
- Date: Thu, 16 May 2002 05:57:03 +0200
>
Corny & Jon
>
>
well if nothing else I'm learning something here...
>
just to confirm:
>
>
OS 9.2.2, Applescript 1.6, Scripting Additions (as left after 9.2.2
>
upgrade and with some independent osaxen), and updated with Jons
>
Commands 2.1.2.
>
>
I've used the Jon Pugh example of Walk Folders and inserted the
>
beginning of Corny's code.
>
It works like a rocket, except when I insert the" info for " line
>
>
Its all up to this:
>
>
-- on Folly
>
-- become frustrated
>
script processFolder
>
property fileList : {}
>
on open (theFile)
>
set thisItemsPath to theFile as string
>
copy theFile as string to end of fileList
>
here is the problem(?):
>
set thisItemsInfo to info for thisItemsPath
>
>
--display dialog theFile as string
>
return fileList
>
end open
>
end script
>
>
set theFiles to choose folder with prompt "Please choose a folder or
>
disk to catalog."
>
set fl to walk folders theFiles with script processFolder
>
display dialog (number of items of fl) as string
>
>
Error message:
>
"Script Debugger got an error: File
>
G4Mitch:Documents:OfficeDB:Scripts:Mike's Scriptable Progress
>
Bar:Archive Contents wasn't found."
>
>
This is the first file in the folder.
>
>
does this help?
>
>
why don't you have to specify the "Finder" for the info for ? (It
>
doesn't work either in a Finder tell statement.
>
>
>
John
The info for statement is in the Standard Additions osax, which is updated
to version 1.7 as part of the OS 9.2.2 upgrade. It is more or less
impossible to work with references to files in this version.
You also have to return to version 1.6 of Standard Additions to, then your
code example will work in a snap.
You may also try AppleScript 1.8.2b3, pick it up at Apple's developer
site. Even if this version is a beta, for me it has showed to be more
solid than any prior version of AppleScript (at least in OS 9.2.2).
/
Jens Eliasson
<email@hidden>, www.tessla.se
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.