can't escape
can't escape
- Subject: can't escape
- From: John McAdams <email@hidden>
- Date: Mon, 15 Apr 2002 00:50:05 -0400
Ok, I'm probably missing the obvious here but...
I'm trying to take a list of alias' and whip them into shape for import
into FileMaker. FileMaker seems willing to accept the following syntax:
file "path:to:file"
When I try to convert my list of alias' into the above syntax using the
following code:
set imagePaths to {alias "HD:Users:john:Documents:Pictures:eli.jpg",
alias "HD:Users:john:Documents:Pictures:gpa.jpg"}
set imageStrings to {}
repeat with x from 1 to (count of imagePaths)
set alias2string to (item x of imagePaths as string)
set fileRef to "file" & " \"" & alias2string "\""
set end of imageStrings to fileRef
end repeat
The bloody escape character keeps getting passed on to the result. Which
makes total sense now that I think about it. You can't make a string
that contians quotes can you? Or can you place images in a new record in
FileMaker with "create record with data imageStrings"?
Hmmm
jmc
--------------------
sanity level: good
--------------------
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.