• 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: Slow app with Fusion drive.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

 try
    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)


-- 
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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

References: 
 >Slow app with Fusion drive. (From: Brian Christmas <email@hidden>)
 >Re: Slow app with Fusion drive. (From: Shane Stanley <email@hidden>)
 >Re: Slow app with Fusion drive. (From: Brian Christmas <email@hidden>)
 >Re: Slow app with Fusion drive. (From: Shane Stanley <email@hidden>)
 >Re: Slow app with Fusion drive. (From: Brian Christmas <email@hidden>)
 >Re: Slow app with Fusion drive. (From: Shane Stanley <email@hidden>)
 >Re: Slow app with Fusion drive. (From: Brian Christmas <email@hidden>)
 >Re: Slow app with Fusion drive. (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Slow app with Fusion drive.
  • Next by Date: Re: Slow app with Fusion drive.
  • Previous by thread: Re: Slow app with Fusion drive.
  • Next by thread: Re: Slow app with Fusion drive.
  • Index(es):
    • Date
    • Thread