• 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: Show Package Contents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Show Package Contents


  • Subject: Re: Show Package Contents
  • From: Philip Aker <email@hidden>
  • Date: Tue, 21 Oct 2008 09:20:03 -0700

On Oct 21, 2008, at 8:45 AM, KOENIG Yvan wrote:

As the package was an rtfd document, I found a workaround:

set p2d to path to desktop as text
set paquet to p2d & "azaz.rtfd:"
tell application "Finder"
	set paquet to paquet as alias
	set oldName to name of paquet
	set dossier to (container of paquet) as text
	set ext to name extension of paquet
	set newName to text 1 thru -(2 + (count of ext)) of oldName
	set name of paquet to newName
	open folder (dossier & newName)
	set name of alias (dossier & newName) to oldName
end tell

Good trick, I'll remember it in case I need it sometime.


Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

_______________________________________________
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
References: 
 >Re: Show Package Contents (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Re: Show Package Contents
  • Next by Date: Excel, save as PDF
  • Previous by thread: Re: Show Package Contents
  • Next by thread: Excel, save as PDF
  • Index(es):
    • Date
    • Thread