Re: Code works in Scripteditor but not ASS
Re: Code works in Scripteditor but not ASS
- Subject: Re: Code works in Scripteditor but not ASS
- From: Walter Ian Kaye <email@hidden>
- Date: Wed, 23 Jun 2004 04:28:28 -0700
At 08:57a +0200 06/23/2004, Ronald Hofmann didst inscribe upon an
electronic papyrus:
this is peculiar. The below code works properly in Scripteditor but
brings an error in Xcode and it worked yesterday.
set Path1 to "/Users/ronny/Desktop/BackUpDateien"
set Path01 to Path1 as POSIX file --error
"NSCannotCreateScriptCommandError (10)"
POSIX file is part of the AppleScript's Standard Additions and should
work.
Path1 is a valid path to an existing folder.
Has anyone an idea what's going on?
No, but what happens if instead of trying to coerce the path, you
simply use it as such?:
set Path01 to POSIX file ("" & "/Users/ronny/Desktop/BackUpDateien")
or
set Path1 to "/Users/ronny/Desktop/BackUpDateien"
set Path01 to POSIX file Path1
-boo
_______________________________________________
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.