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
Coerce file reference to text
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Coerce file reference to text
Subject
:
Coerce file reference to text
From: Sam <
email@hidden
>
Date: Wed, 10 May 2006 11:08:13 -0400
I've checked around this list and want to extract a POSIX like, (but not POSIX because the file reference is fine as is without the colons) file path.
I like the getting every file of the folder because I can modify it to just get Quark files.
But I'm getting file references that I cannot make into strings so that I can delimit them the way I want.
Is there a better way to get "SeverVol/Job Folder/Quark_file_I_want"? I keep coming up missing it or errors that the file reference can't be text.
frustrated, sam
tell application "Finder"
set UserResponse to (choose folder) as string
tell application "System Events"
set oldDelims to AppleScript's text item delimiters
set filelist to every file of folder UserResponse whose file type contains "XPR"
set AppleScript's text item delimiters to ":"
set path_items to text items of filelist2
set AppleScript's text item delimiters to "/"
set AppleScript's text item delimiters to oldDelims
end tell
return filelist2
end tell
_______________________________________________
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
Follow-Ups
:
Re: Coerce file reference to text
From:
kai <email@hidden>
Re: Coerce file reference to text
From:
Michelle Steiner <email@hidden>
Prev by Date:
Re: iCal AppleScript failures; claims to be out of memory
Next by Date:
how to create table in TextEdit using applescript
Previous by thread:
Re: Character Encoding in plain text
Next by thread:
Re: Coerce file reference to text
Index(es):
Date
Thread