• 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: "Joel May" <email@hidden>
  • Date: Wed, 28 Aug 2002 17:51:06 -0500

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.

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.

Joel



-----Original Message-----
From: Philip Aker [mailto:email@hidden]
Sent: Wednesday, August 28, 2002 5:19 PM
To: email@hidden
Cc: email@hidden
Subject: Re: Setting the bundle package bit

Oops,

Instead of "version.plist", I think the better file to have is
"PkgInfo"--a plain text file containing the file type and creator:

APPLTest

or

APPL????

if you don't need a creator.

Philip

On Wednesday, August 28, 2002, at 02:44 PM, Philip Aker wrote:

>
> On Wednesday, August 28, 2002, at 01:26 AM, Joel May wrote:
>
>> How do you set the package bit for an app bundle via AppleScript?
>
> I'm not sure. I thought it would have been possible with
> /Developer/Tools/SetFile (-aB option) but I guess not. What I've
> noticed though is that if you re-create the folder hierarchy of a
> bundle:
>
> Test.app
> Contents
> Info.plist
> MacOS
> version.plist
>
> and put some reasonable values into the fields in the "Info.plist" and

> "version.plist" files, the Finder will display this folder as an
> application. You'll have to quit the Finder and then launch it again
> so that it can refresh its application database.

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.

  • Follow-Ups:
    • Re: Setting the bundle package bit
      • From: Philip Aker <email@hidden>
References: 
 >Re: Setting the bundle package bit (From: Philip Aker <email@hidden>)

  • Prev by Date: Running a script with Jon's commands
  • Next by Date: Re: Usage (was Re: OT: Re: New Address Book in Jaguar 10.2...)
  • Previous by thread: Re: Setting the bundle package bit
  • Next by thread: Re: Setting the bundle package bit
  • Index(es):
    • Date
    • Thread