• 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
Re: Code works in Scripteditor but not ASS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Code works in Scripteditor but not ASS (From: Ronald Hofmann <email@hidden>)

  • Prev by Date: Re: "double tell" / "using terms from" not working?
  • Next by Date: Re: quit the dock - possible?
  • Previous by thread: Code works in Scripteditor but not ASS
  • Next by thread: Quark XPress 6 OS X script problem when Quark 5.x is running - coercion handler?
  • Index(es):
    • Date
    • Thread