Re: File Properties as string
Re: File Properties as string
- Subject: Re: File Properties as string
- From: kai <email@hidden>
- Date: Sat, 2 Apr 2005 07:08:52 +0100
On Fri, 01 Apr 2005 18:22:58 -0800, Todd Geist wrote:
I am wondering if there is a simple way to coerce the file properties
list
returned by "info for" into a string with the property names intact.
Set theItem to choose file
Set theInfo to info for theItem
-->
{name:"CoreSolutions_CalcDocumentation.pdf", creation date:date
"Thursday,
March 31, 2005 10:25:26 AM", etc, etc}
The result is a property list ( I think that is the right term). I
want it
as text but I don't want to loose the property name. I want to pass it
exactly as it appears above but as a string
I can create a sub routine to build the text string I suppose, but is
there
a simpler way?
A bit of a hack, Todd - but one that usually does the trick:
-----------
set theItem to choose file
set theInfo to info for theItem
try
e of theInfo
on error e
set infoText to e's text 16 thru -2
end try
-- do something with infoText
-----------
---
kai
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden