NSAppleScript behaving strange
NSAppleScript behaving strange
- Subject: NSAppleScript behaving strange
- From: Micha Fuhrmann <email@hidden>
- Date: Fri, 20 Jul 2007 17:38:41 +0200
Hi there,
I really don't know what's going on. The script gets an run error:
<CFDictionary 0x147c780 [0xa080b1c0]>{type = mutable, count = 4,
capacity = 8, pairs = (
1 : <CFString 0xa27ddbd0 [0xa080b1c0]>{contents =
"NSAppleScriptErrorNumber"} = <CFNumber 0x147c7b0 [0xa080b1c0]>{value
= -43, type = kCFNumberSInt32Type}
2 : <CFString 0xa27ddbe0 [0xa080b1c0]>{contents =
"NSAppleScriptErrorMessage"} = <CFString 0x30ca60 [0xa080b1c0]>
{contents = "File :Volumes:MICHA:QQQ:AAA: wasn't found."}
3 : <CFString 0xa27ddba0 [0xa080b1c0]>{contents =
"NSAppleScriptErrorRange"} = <00000000 00000000 >
7 : <CFString 0xa27ddbb0 [0xa080b1c0]>{contents =
"NSAppleScriptErrorBriefMessage"} = <CFString 0x14321c0 [0xa080b1c0]>
{contents = "File :Volumes:MICHA:QQQ:AAA: wasn't found."}
)}
Now I do a print from the _source of the NSAppleScript in the
console, copy/paste in Script Editor and it runs just fine...
Here is my script:
tell application "Finder"
set source to ":Volumes:MICHA:QQQ:AAA:" as alias
set destination to ":Users:Micha:Desktop:" as alias
duplicate source to destination replacing yes
end tell
Any idea?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden