Re: More 9.1 Problems

From: Roy McCoy (roy@LUNA.NL)
Date: Mon May 21 2001 - 19:39:21 AEST


Paul Berkowitz wrote:

> The 'entire contents' property has always been buggy. You can't use it
> on folders with lots of subfolders.

I'm sorry to hear that, as it seemed so enormously convenient in contrast
to what you had to do before (which I've long since forgotten). But thanks
for the word, though the problem with me apparently isn't with the number
of subfolders since it doesn't work even for a single small folder.

> I prefer Akua Sweets 'the entries in selectedFolder as alias'.

I'll try that, since I have Akua Sweets... Durn, I haven't been scripting
so long that I'd forgotten what the frustrating midnight anxiety was like.
I could get {alias " Great Royzito:Test Folder:Test File 1.htm", alias
" Great Royzito:Test Folder:Test File 2.htm", alias " Great Royzito:Test
=46older:Test File 3.html", alias " Great Royzito:Test Folder:Test File
4.html"}, but I couldn't do anything practical with the list items.
Specifically, I couldn't change the creator type of the files with names
ending in "htm" or "html" to "R*ch". I've missed, forgotten, or never
learned something, but I don't know what it is. Starting from such a
returned list, how do I (1) test for "htm" or "html" in the file name,
and (2) get "set creator type of [???] to "R*ch"" to work?

I was equally unsuccessful with Jon's Commands "walk folders", with which
I could do absolutely nothing, as it wouldn't take "with script" following
the "walk folders" line, but insisted that it was expecting "timeout" or
"transaction". I tried providing these, but it kept on demanding "timeout"
or "transaction" anyway.

> Use Software Update control panel to update to AppleScript 1.6.

Thanks. I did this, and the script ran slightly differently than it had
with Script Editor 1.4.3 or 1.5.5 - but it still didn't work, though
there wasn't anything apparently wrong with it (other than its using
"entire contents") and the test folder contained only four small files:

tell application "Finder"
  activate
  set selectedFolder to choose folder with prompt =8A
    "Choose folder to be processed."
end tell
tell application "Finder"
  activate
  set fileList to (every file of entire contents of selectedFolder)
  repeat with currentFile in fileList
    display dialog name of currentFile
  end repeat
end tell



David Livesay wrote:

> There's a utility called Drop*BB that ships with BBEdit. Just drop your
> folder on that and it will change all text files to BBEdit files. If you
> only want to do it to your HTML files, just do a Sherlock search for .htm
> and drop the found set on Drop*BB.

Yeah, that worked perfectly and took all of two seconds. I guess I'm a
masochist for trying to script it anyway, even figuring that the utility
would work. Thanks.


Roy McCoy

------------------------------



This archive was generated by hypermail 2b29 : Sun May 27 2001 - 12:00:29 AEST