• 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: Setting the bundle package bit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting the bundle package bit


  • Subject: Re: Setting the bundle package bit
  • From: Philip Aker <email@hidden>
  • Date: Thu, 29 Aug 2002 00:47:06 -0700

On Wednesday, August 28, 2002, at 03:51 PM, Joel May wrote:

I've found that there is redundancy as to whether a folder is an app
bundle. If it has the ".app" extension or the package bit, it is
treated like an app bundle. My problem is that I want to sometimes
treat the bundle as a folder hierarchy and sometimes as an app. I need
to be able to toggle this within an AppleScript.

I'm having problems coping files into this folder via a script when the
package bit is set. If I leave the bit on, the script fails. If I
manually turn it off, the script works. But I want the script to turn
it off and back on.

Yes. However if you are on OS X then you can use shell commands to move stuff into an application package because (fortunately) the traditional ones don't know the difference between a bundle and a folder. So maybe setting the package bit is unnecessary. Also you can change the name from "path/to/folder" to "path/to/folder.app" with 'mv'.

If you are on OS 9, then you can handle this in a Tcl script. I believe the stock installation of the Tcl/Tk shared libraries on OS 9 have additions to the 'file' command which can do this. If not then you can do it for sure in a script addressed to the application Alpha (which comes with an impressive set of extensions by Bernard Desgaupes to deal with things Macintosh). Otherwise you'll prolly have to go the MPW shell route.


Cheers,


Philip


I looked at the properties record for a folder. There is a ton of
stuff in it -- dates, creator/file type 4-byte thingies, etc. But there
is nothing about the package bit.

Philip Aker
http://www.aker.ca
_______________________________________________
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.

References: 
 >RE: Setting the bundle package bit (From: "Joel May" <email@hidden>)

  • Prev by Date: Re: Reading XML files
  • Next by Date: Re: AppleScript Try
  • Previous by thread: RE: Setting the bundle package bit
  • Next by thread: How do I close a Finder folder window?
  • Index(es):
    • Date
    • Thread