• 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
[SOLVED] Re: script works when reading from DVD but not when reading from hard disk
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SOLVED] Re: script works when reading from DVD but not when reading from hard disk


  • Subject: [SOLVED] Re: script works when reading from DVD but not when reading from hard disk
  • From: Mari Masuda <email@hidden>
  • Date: Tue, 6 Oct 2009 15:56:22 -0700

Thank you to everybody who responded.  I solved the problem by using Shane Stanley's code except that I turned it into a handler so I could use it in multiple places.  The code I am now using is:

on getContainer(aliasToItem)
set textPath to aliasToItem as text
set oldDelims to AppleScript's text item delimiters
set AppleScript's text item delimiters to {":"}
set theContainer to text item -2 of textPath
set AppleScript's text item delimiters to oldDelims


return theContainer
end getContainer

Thanks again!

Mari
 _______________________________________________
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: script works when reading from DVD but not when reading from hard disk (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: script works when reading from DVD but not when reading from hard disk
  • Next by Date: Re: AS Timeout (Silence) Updated
  • Previous by thread: Re: script works when reading from DVD but not when reading from hard disk
  • Next by thread: Get UI Attribute Value
  • Index(es):
    • Date
    • Thread