Can't make {alias "data:........

have a Applescript error in my worklow;

Can’t make {alias “data:HDRI_werkmap:workflow_ontwerp:test:1:DSC_0026.psd”} into type alias. (-1700)

Found several information on this forum but not how I can solve this problem.

Is there perhaps a little trick for this?

Thanks

Bob

Is there any more info you can give or can you post some of the code for us to see? Does this error occur in a Finder tell command?

jON bEEBE

Hello Jon,

Sorry for the late response but found some sollutions (not directly connected to this question):

http://bbs.applescript.net/viewtopic.php?id=16877

When the problems occurs again I’'l try to make a better discription here.

Greetings

For those who might view this topic from a search, I suspect that the problem is that the original poster is dealing with a 1 item list, {alias “data:HDRI_werkmap:workflow_ontwerp:test:1:DSC_0026.psd”}

The curly braces indicate that it’s a list.

The “trick” is to reference it as “item 1” of that list.

eg


set thefiles to (choose file with multiple selections allowed)
-- result {alias "data:HDRI_werkmap:workflow_ontwerp:test:1:DSC_0026.psd"}
set myfile to item 1 of thefiles
-- result alias "data:HDRI_werkmap:workflow_ontwerp:test:1:DSC_0026.psd"

Hope this helps someone.

Hello Paul,

Little bit late response but that’s a great tip thanks

Bob

it indeed helped me thank you Bob

Much appreciated!

David - UK