Re: Slow app with Fusion drive.
Re: Slow app with Fusion drive.
- Subject: Re: Slow app with Fusion drive.
- From: Shane Stanley <email@hidden>
- Date: Wed, 13 Mar 2013 17:51:32 +1100
On 13/03/2013, at 5:23 PM, Brian Christmas <email@hidden> wrote:
OK, I've realized I needed to pipe the reserved word 'Path'
Correct; you have to do that when it's a reserved AS term.but my code is crashing when trying to convert the POSIX path to an HFS path. Can't work out why. set oneFile1 to theFile's |path|()
So at this stage oneFile1 (Brian, you really have to do something about your variable naming scheme -- some of this is crazy!) is an NSString. You can pass it to a Cocoa method like that, but if you want do something in normal AS with it, you first need to coerce it to a string:
set oneFile1 to oneFile1 as text
Now it's a string and can be coerced to a POSIX file. set onefile to ((oneFile1 as POSIX file) as text)
|
_______________________________________________
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