ASObjc: FileManager changeCurrentDirectoryPath not recognized
ASObjc: FileManager changeCurrentDirectoryPath not recognized
- Subject: ASObjc: FileManager changeCurrentDirectoryPath not recognized
- From: Mitchell L Model <email@hidden>
- Date: Sun, 19 Mar 2017 11:18:30 -0400
I know that "working directory" is undefined in regular AppleScripts. But I have an ASObjc script in which I do want to change the current working directory so that I can use relative paths. I have the corresponding code working in Objective-C, but the following produces an error in ASObjc:
my NSFileManager's defaultManager's changeCurrentDirectoryPath
The error is:
-[NSFileManager changeCurrentDirectoryPath] unrecognized selector sent to instance …
Getting the current working directory works fine:
my NSFileManager's defaultManager's currentDirectoryPath
I thought ASObjc was a complete bridge to the Foundation library. Anyone know what's going on here?
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden