• 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: Finder Passing Copies of Folders Rather than the Originals
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder Passing Copies of Folders Rather than the Originals


  • Subject: Re: Finder Passing Copies of Folders Rather than the Originals
  • From: "S. J. Cunningham" <email@hidden>
  • Date: Sun, 22 Feb 2015 07:03:56 -0500

Found the problem and it is bizarre.   Some folders actually _do_ have the Stationery bit set in the extended attributes (apple.com.Finder.Info) and the Finder honors it when called by Applescript but apparently not at other times.  One such folder on my system is the Documents folder!  Dropping it on the script app below causes the Finder to start to copy it.  Snow Leopard definitely has the problem but I am not sure about later releases of the OS.

You can find if you have any of these anomalous folders with:

   mdfind "kMDItemFSIsStationery == 1 && kMDItemKind == 'Folder'"


On Feb 20, 2015, at 12:17 PM, S. J. Cunningham wrote:

> I have been experiencing an issue lately with several scripts where, when the Finder is asked to pass a folder to an application, it first makes a copy of the folder and then passes the copy to the application rather than the original.  Furthermore, this only happens with some folders and not with others.  The owners, permissions, etc. for the folders involved, ie copied or not, are all the same and I can detect no pattern to the ones which are copied.
>
> I first saw this behavior when using "tell application "Finder" to open someFolder using someApplication".  In trying to track down the problem I found that the attached script, when saved as a script application (bundle), exhibits the same behavior when a folder is dropped on it:  some folders are copied first, others are not.  It is as if the folders in question had the "Stationery Pad" bit set... but, of course, folders don't have that bit.  I am running OS X 10.6.8.
>
> Has anyone else seen this and/or can explain it?
>
> Thanks.
>
> -----------------------------------
> on open (aList) -- Drop Entry
> 	display dialog "Drop Entry"
> 	main(aList)
> end open
>
>
> on main(aList)
> 	display dialog "Main: aList = " & aList as string
> end main
>
> on quit
> 	display dialog "Quitting"
> 	continue quit
> end quit
>
> -- Manual or Run Entry
> display dialog "Manual or Run Entry"
> main([1, 2, 3])
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


  • Follow-Ups:
    • Re: Finder Passing Copies of Folders Rather than the Originals
      • From: Shane Stanley <email@hidden>
References: 
 >Finder Passing Copies of Folders Rather than the Originals (From: "S. J. Cunningham" <email@hidden>)

  • Prev by Date: Re: XML script library?
  • Next by Date: Re: Finder Passing Copies of Folders Rather than the Originals
  • Previous by thread: Finder Passing Copies of Folders Rather than the Originals
  • Next by thread: Re: Finder Passing Copies of Folders Rather than the Originals
  • Index(es):
    • Date
    • Thread