Re: Jons Commands (John, Mitchell)
Re: Jons Commands (John, Mitchell)
- Subject: Re: Jons Commands (John, Mitchell)
- From: "John, Mitchell" <email@hidden>
- Date: Sun, 12 May 2002 12:54:36 +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
--
John Mitchell
Office: +36 (1) 437 3623
Mob: +36 20 978 6077
_______________________________________________
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.