• 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: tilde shortcut
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tilde shortcut


  • Subject: Re: tilde shortcut
  • From: Robert Poland <email@hidden>
  • Date: Mon, 4 Oct 2010 13:16:26 -0600

Emmanuel,

"a Smile / Satimage.osax / XMLLib.osax thing"?

As a long time user of Smile, where could one find out a little more?


On Oct 4, 2010, at 11:59 AM, Emmanuel LEVY wrote:

> Just for those interested, tilde is a shell thing, and also a Smile / Satimage.osax / XMLLib.osax thing, making things more portable with Smile.
>
> Emmanuel
>
> On Oct 4, 2010, at 5:49 PM, Mark J. Reed wrote:
>
>> Tilde is a shell thing, not an AppleScript thing. Inside a "do shell
>> script" command string, unquoted "~" by itself expands to the value of
>> the "HOME" environment variable, which the system initially sets to
>> the user's home directory, while  ' "~"+ & username ' expands to the
>> home directory of the named user according to directory services.
>>
>> However, if you're in Applescript and want to access the current
>> user's Documents folder, just use
>>
>> "path to documents folder from user domain".
>>
>> which is an alias that you can then use anywhere aliases are accepted
>> in AS, or convert to a quoted-form POSIX path (which will be
>> pre-expanded, no tildes) to use in do shell script, or whatever.
>>
>>
>> On Mon, Oct 4, 2010 at 11:04 AM, Robert Poland <email@hidden> wrote:
>>> Hi,
>>>
>>>
>>> I'm trying to remember how the tilde (~) is used in Applescript to replace the HD/Users/Name to link to the Documents folder to make a script more universal.
>>>
>>> OR a link to where I can find this.
>>>
>>> TIA,
>>>
>>>
>>> Robert Poland - Fort Collins, CO
>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>>
>>
>>
>> --
>> Mark J. Reed <email@hidden>
>> _______________________________________________
>> 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
>
> _______________________________________________
> 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

Robert Poland - Fort Collins, CO



 _______________________________________________
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: 
 >tilde shortcut (From: Robert Poland <email@hidden>)
 >Re: tilde shortcut (From: "Mark J. Reed" <email@hidden>)
 >Re: tilde shortcut (From: Emmanuel LEVY <email@hidden>)

  • Prev by Date: Re: Smile and mid 2010 iMacs and Pros with Core i3-5 processors
  • Next by Date: Sort Multidimensional Array by Column 5
  • Previous by thread: Re: tilde shortcut
  • Next by thread: Re: tilde shortcut
  • Index(es):
    • Date
    • Thread