[SOLVED] Re: script works when reading from DVD but not when reading from hard disk
[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