Re: AppleScript-Users Digest, Vol 17, Issue 61
Re: AppleScript-Users Digest, Vol 17, Issue 61
- Subject: Re: AppleScript-Users Digest, Vol 17, Issue 61
- From: Kellen Ruyle via AppleScript-Users <email@hidden>
- Date: Wed, 13 May 2020 08:49:43 -0500
Hello Gil,
I’ve done this before. What I would suggest is following Apple’s
guidelines on doing so. They give a detailed way of doing it.
https://support.apple.com/en-us/HT201548
I hope this helps!
Kel
Sent from my iPhone
>> On May 12, 2020, at 10:46 PM, email@hidden
>> wrote:
> Send AppleScript-Users mailing list submissions to
> email@hidden
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.apple.com/mailman/listinfo/applescript-users
> or, via email, send a message with subject or body 'help' to
> email@hidden
>
> You can reach the person managing the list at
> email@hidden
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of AppleScript-Users digest..."
>
>
> Today's Topics:
>
> 1. Home Folder Name Change (Gil Dawson)
> 2. Re: Home Folder Name Change (email@hidden)
> 3. Re: Home Folder Name Change (Steve Mills)
> 4. Re: Home Folder Name Change (Deivy Petrescu)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 12 May 2020 17:02:46 -0700
> From: Gil Dawson <email@hidden>
> To: AS Users List <email@hidden>
> Subject: Home Folder Name Change
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi--
>
> I used Migration Assistant to copy from my 2009 MacBook Pro with onto a newer
> 2015 MacBook Pro.
>
> Somehow in the process my home-folder-name (is that the right term?) got
> changed from "gil" to "gil 1"
>
>
>
> Most things work OK, but some of my AppleScripts use a hard-coded path. They
> work if I simply change the path a bit:
>
> from: POSIX file "/Users/gil/Gil'sStuff/Projects/..."
> to: POSIX file "/Users/gil 1/Gil'sStuff/Projects/..."
>
> It's not an awful chore for me to change all my source code files, yet I
> thought I'd ask:
>
> Is there a practical way to change my home-folder-name back to "gil" without
> messing up something else?
>
> --Gil
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <https://lists.apple.com/mailman/private/applescript-users/attachments/20200512/b7d1e111/attachment.htm>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: PastedGraphic-12.png
> Type: image/png
> Size: 23249 bytes
> Desc: not available
> URL:
> <https://lists.apple.com/mailman/private/applescript-users/attachments/20200512/b7d1e111/attachment.png>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 12 May 2020 17:32:57 -0700
> From: email@hidden
> To: Gil Dawson <email@hidden>
> Cc: AS Users List <email@hidden>
> Subject: Re: Home Folder Name Change
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset="utf-8"
>
> Gil,
>
>>> On May 12, 2020, at 5:02 PM, Gil Dawson via AppleScript-Users
>>> <email@hidden> wrote:
>> It's not an awful chore for me to change all my source code files,
>
> If you can?t easily change your username, you wouldn?t need to have it
> hard-coded in your scripts. You could so something like this:
> Set username to
> set username to system attribute "USER"
> POSIX file "/Users/? & username & "/Gil'sStuff/Projects/..."
>
> I know it?s not what you asked for, but...
>
> Frank
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <https://lists.apple.com/mailman/private/applescript-users/attachments/20200512/f2803318/attachment.htm>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 12 May 2020 19:56:59 -0500
> From: Steve Mills <email@hidden>
> To: AppleScript Users <email@hidden>
> Subject: Re: Home Folder Name Change
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset="utf-8"
>
>>> On May 12, 2020, at 19:33, Jenni via AppleScript-Users
>>> <email@hidden> wrote:
>> If you can?t easily change your username, you wouldn?t need to have it
>> hard-coded in your scripts. You could so something like this:
>> Set username to
>> set username to system attribute "USER"
>> POSIX file "/Users/? & username & "/Gil'sStuff/Projects/..."
>> I know it?s not what you asked for, but...
>
> Or use ?path to home folder?, or whatever it is (not at a Mac).
>
> Steve via iPad
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <https://lists.apple.com/mailman/private/applescript-users/attachments/20200512/f4e2cf59/attachment.htm>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 12 May 2020 23:46:35 -0400
> From: Deivy Petrescu <email@hidden>
> To: Gil Dawson <email@hidden>
> Cc: AS Users List <email@hidden>
> Subject: Re: Home Folder Name Change
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=utf-8
>
>
>
>>> On May 12, 2020, at 20:02 , Gil Dawson via AppleScript-Users
>>> <email@hidden> wrote:
>> Hi--
>> I used Migration Assistant to copy from my 2009 MacBook Pro with onto a
>> newer 2015 MacBook Pro.
>> Somehow in the process my home-folder-name (is that the right term?) got
>> changed from "gil" to "gil 1"
>
> Gil, it is not somehow, if you use MA to migrate, you should create an ad
> account with a different name than the one you want to use, then use MA.
> Now the old user keeps his directory.
> Obviously this is for the future?
> Also for the future, Frank?s and Steve suggestion is great, however, cast the
> first stone who has not made this mistake?
>
> For now, you can try to look for Unix methods to change the home folder,
> or?.untried and unverified, you can try to use System Preferences.
> Go to the Cuurrent User pane Ctrl- click on gil 1 and go for advanced
> options. Change the home directory name restart and hope for the best.
>
> Please let us know if it works.
>
> Best of luck
>
> Be safe.
>
>> <PastedGraphic-12.png>
>> Most things work OK, but some of my AppleScripts use a hard-coded path.
>> They work if I simply change the path a bit:
>> from: POSIX file "/Users/gil/Gil'sStuff/Projects/..."
>> to: POSIX file "/Users/gil 1/Gil'sStuff/Projects/..."
>> It's not an awful chore for me to change all my source code files, yet I
>> thought I'd ask:
>> Is there a practical way to change my home-folder-name back to "gil" without
>> messing up something else?
>> --Gil
>> _______________________________________________
>> 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
>
> Deivy Petrescu
> email@hidden
>
>
>
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> AppleScript-Users mailing list
> email@hidden
> https://lists.apple.com/mailman/listinfo/applescript-users
>
>
> ------------------------------
>
> End of AppleScript-Users Digest, Vol 17, Issue 61
> *************************************************
_______________________________________________
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