Re: / change to '.' in saving code
Re: / change to '.' in saving code
- Subject: Re: / change to '.' in saving code
- From: Steve Mills <email@hidden>
- Date: Tue, 03 Jan 2017 20:08:35 +0000 (GMT)
On Jan 03, 2017, at 01:16 PM, Pat Stanford <email@hidden> wrote:
I am just a lurker here, but trying to work around this is a mistake.
There are some characters that should just never be used in file names. This include both the ones you are having trouble with, forward slashes and colons. Both are used as path delimiters, so there use as part of the file name will often confuse either a program or the system to think that part of the name is a folder instead of part of the file name.
You can probably figure out a way to work around this, but it is almost guaranteed to come back and bite you at some point in the future.
Suck it up and just accept that you need to use another separator. A dash (-) or and underscore (_) are often the best delimiters to use in file names.
I disagree. Apple found a way to work around it and does it pretty much invisibly to the average user. Doing the right thing means handling characters that ARE legal to the current OS. So, suck it up and write the code that makes it better for the user.
I use DropBox to store files while on mobile devices, then sync them once I'm back home on my desktop Mac. One thing that continually pisses me off is that the DropBox iOS interface won't let you use characters such as '?' that are completely legal on macOS. Sure, they have to handle people using the files on Windows, but I don't give a crap about Windows compatibility. Had they gone the extra step of simply warning the user on iOS and still letting the '?' go through (and even offered a checkbox pref somewhere named "Windows sucks, so let me use legal Mac characters, damn it"), I'd no longer cuss like a sailor every time I try to use it.
Sent from iCloud's ridiculous UI, so, sorry about the formatting
_______________________________________________
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