image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old March 9th, 2005, 11:27 AM
Registered User
 
Join Date: Feb 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
shamusom is on a distinguished road
Applescript for contents of package?

Does anyone know how to list the entire contents of an app package with applescript:

If I do the following:

set d to entire contents of the_alias

it works for folders, but not for os x app packages. Any ideas on how to do this?

Reply With Quote
  #2  
Old March 9th, 2005, 04:29 PM
Satcomer's Avatar
In Geostationary Orbit
 
Join Date: Jul 2002
Location: Northern Virginia
Posts: 5,415
Thanks: 4
Thanked 43 Times in 42 Posts
Satcomer is a jewel in the roughSatcomer is a jewel in the roughSatcomer is a jewel in the rough
I don't know any AppleScript way that will do that but there is Pacifist.
__________________
PowerMac G5 Dual 1.8(Rev A.), , 7 Gig RAM, Pioneer DVR-110, ATI X800XT, OS X 10.4.11 & 10.5.5, 23'' HD LCD
Mac Book Pro Core 2 Duo 2.16Mhz, SuperDrive, ATI X1600, 2GB RAM, OS X 10.5.5
1TB Time Capsule
5g iPod 30Gig White
Reply With Quote
  #3  
Old March 9th, 2005, 04:58 PM
Robn Kester's Avatar
I heart nothing
 
Join Date: Sep 2000
Location: A house
Posts: 191
Thanks: 0
Thanked 0 Times in 0 Posts
Robn Kester is on a distinguished road
I read this earlier and did some digging. I believe that it can be done without too much scripting. However I am not a AS person, so I cannot tell you how.

As far as I know, everything in the Finder is scriptable, including all menus, popups, contentuals etc.

Have you tried digging around on some of the Apple Script sites such as scriptbuilders.net?

Xcode is much more powerful than AS, so if it cant be done with AS, I am pretty sure it can with Xcode.
__________________
mac mini 1.42 - my baby
ipod 3rd gen 20gig color - my new music baby
ipod 1st gen 5gig - dead and trashed
g4/466 - my server and an old friend
imac 333 - sold
6100/66av - dead
IIsi - paperweight
mac se30 - burned and dead
mac plus with radius FPD - burned and dead
-
mac user since 1988
Reply With Quote
  #4  
Old March 9th, 2005, 07:12 PM
ElDiabloConCaca's Avatar
U.S.D.A. Prime
 
Join Date: Aug 2001
Location: San Antonio, Texas
Posts: 10,288
Thanks: 3
Thanked 109 Times in 101 Posts
ElDiabloConCaca is a jewel in the roughElDiabloConCaca is a jewel in the roughElDiabloConCaca is a jewel in the rough
XCode isn't going to do anything for you unless you know how to program in one of several languages (C, Objective-C, Java, C++, etc.). XCode by itself does nothing -- it's like PhotoShop without a single image to use with it.
__________________
Power Macintosh G4/500MHz "Yikes!" 10.4.11 Server • 1024MB • 3 x 120GB + 320GB • DVR-111D • 2 x Radeon 7000 PCI • 2 x 17" CRT
MacBook 2.0GHz Core 2 Duo - White 10.5.5 • 2048MB • 80GB • CD-RW/DVD-ROM
iPod Photo 60GB • iPod nano 1GB • AT&T DSL 6Mb/768k
http://www.jeffhoppe.com
Reply With Quote
  #5  
Old March 10th, 2005, 05:11 PM
Robn Kester's Avatar
I heart nothing
 
Join Date: Sep 2000
Location: A house
Posts: 191
Thanks: 0
Thanked 0 Times in 0 Posts
Robn Kester is on a distinguished road
I was under the impression that AppleScript can be easily moved to Xcode and then enhanced, so I was offering that up as a possible idea towards the end mentioned.
__________________
mac mini 1.42 - my baby
ipod 3rd gen 20gig color - my new music baby
ipod 1st gen 5gig - dead and trashed
g4/466 - my server and an old friend
imac 333 - sold
6100/66av - dead
IIsi - paperweight
mac se30 - burned and dead
mac plus with radius FPD - burned and dead
-
mac user since 1988
Reply With Quote
  #6  
Old March 10th, 2005, 06:54 PM
ElDiabloConCaca's Avatar
U.S.D.A. Prime
 
Join Date: Aug 2001
Location: San Antonio, Texas
Posts: 10,288
Thanks: 3
Thanked 109 Times in 101 Posts
ElDiabloConCaca is a jewel in the roughElDiabloConCaca is a jewel in the roughElDiabloConCaca is a jewel in the rough
Oh, hmm, never thought of it that way... although in XCode, there's really no "magic button" you can press to generate AppleScript code you couldn't normally generate on your own. I'm still under the impression that if you don't know how program outside of XCode, then XCode isn't going to make you a better programmer...
__________________
Power Macintosh G4/500MHz "Yikes!" 10.4.11 Server • 1024MB • 3 x 120GB + 320GB • DVR-111D • 2 x Radeon 7000 PCI • 2 x 17" CRT
MacBook 2.0GHz Core 2 Duo - White 10.5.5 • 2048MB • 80GB • CD-RW/DVD-ROM
iPod Photo 60GB • iPod nano 1GB • AT&T DSL 6Mb/768k
http://www.jeffhoppe.com
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 12:25 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.