• 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: R23's Osaxen email@hidden>.>It's not me
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: R23's Osaxen email@hidden>.>It's not me


  • Subject: Re: R23's Osaxen email@hidden>.>It's not me
  • From: Bill Cheeseman <email@hidden>
  • Date: Fri, 26 Jan 2001 18:02:12 -0500

on 1/26/01 12:19 PM, Bill Christens-Barry at email@hidden wrote:

>> In this case, it isn't the Finder's "fault," so to speak; you just didn't
>> write your script to make full use of the Finder's implementation of file
>> copying. All you have to do is write a handler that delays until the
>> Finder's copy operation is complete, using the "bzy " file type mechanism
>> that was introduced a few versions ago. Examples exist in Sal's help
>> modules.
>
> I'm not familiar with this; could you give an example or URLs?

This feature was introduced in Mac OS 8.5. The creator type of a file is
"MACS" and the file type of a file is "bzyx" while it is being copied (where
x may be a space or any of many other characters). The file only assumes its
proper creator and file type once the copy is complete. A script can test
these values in a repeat loop or an idle handler to find out when the copy
has completed.

I can't find this covered in Sal's AppleScript Guidebook, after all.

But for an excellent example from Sal, look at the "on
check_busy_status(this_item)" handler in several of the folder action
scripts installed in the Folder Action Scripts subfolder in the Scripts
folder of your System Folder. Say, the "add - add to activity log" folder
action.

For another example, by yours truly, look at the "Wait for Copy" script in
The AppleScript Sourcebook, here:

<http://www.AppleScriptSourcebook.com/scripts/idlelib/idlelibexamples/>

A quote on the subject by Andy Bachorski, then at Apple but now at Adobe,
appears in my report on AppleScript 1.3.4 in Mac OS 8.5, here:

<http://www.AppleScriptSourcebook.com/applescript/applescript134.html>.

I thought I remembered a Tech Info Library article about this, but I can't
seem to find it.

-
Bill Cheeseman, Quechee, Vermont <mailto:email@hidden>

The AppleScript Sourcebook
<http://www.AppleScriptSourcebook.com/>
Vermont Recipes-A Cocoa Cookbook
<http://www.stepwise.com/Articles/VermontRecipes/>


References: 
 >Re:R23's Osaxen email@hidden>.>It's not me (From: Bill Christens-Barry <email@hidden>)

  • Prev by Date: Re: R23's Osaxen Rant (or much too much ado about nihil)
  • Next by Date: Re: Scripts for Remote Access in 9.1
  • Previous by thread: Re:R23's Osaxen email@hidden>.>It's not me
  • Next by thread: StartupDisk application in Control panel
  • Index(es):
    • Date
    • Thread