• 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: ongoing Senior moments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ongoing Senior moments


  • Subject: Re: ongoing Senior moments
  • From: Thomas Fischer <email@hidden>
  • Date: Mon, 01 Dec 2014 14:07:28 +0100

Hello,

Am 01.12.2014 um 12:53 schrieb Shane Stanley <email@hidden>:

> On 1 Dec 2014, at 10:38 pm, Yvan KOENIG <email@hidden> wrote:
>
>> I'm puzzled.
>>
>> Must I assume that the french system is more fair than the English one ?
>
> No; I was using a path to a folder that didn't exist. But I still don't fancy relying on it longer-term. Especially when there's a simple alternative:
>
> use framework "Foundation"
> use scripting additions
>
> set theFolder to "~/Pictures/APOD ƒ/"
> set theFolder to (current application's NSString's stringWithString:theFolder)'s stringByExpandingTildeInPath() as text
> set theFile to (choose file default location (POSIX file theFolder) as alias)

while I tend to agree on the long-term reliability issue I have to confess: I don’t like ASObjC!
In an AppleScript context it sticks out like a sore thumb.
I also would be hard pressed to call
> set theFolder to (current application’s NSString’s stringWithString:theFolder)'s stringByExpandingTildeInPath() as text
a simple alternative to
tell application "System Events“ to set theFolder to path of disk item theFolder
even disregarding the use clauses.

Cheers
Thomas
 _______________________________________________
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


  • Follow-Ups:
    • Re: ongoing Senior moments
      • From: Yvan KOENIG <email@hidden>
References: 
 >Re: ongoing Senior moments (From: Yvan KOENIG <email@hidden>)
 >Re: ongoing Senior moments (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: ongoing Senior moments
  • Next by Date: Re: ongoing Senior moments
  • Previous by thread: Re: ongoing Senior moments
  • Next by thread: Re: ongoing Senior moments
  • Index(es):
    • Date
    • Thread