I downloaded a file from internet and imported it to my Devonthink pro 3, it shows a file with a url. Here is the my question: When I dragged this file to send it through a messenger app, it dropped the url to the messenger instead of the file itself while the files without url do not. Anything I could do to drop the file but not the url of it? Many thanks!
And we still donât know which messengers youâre talking about. The information might be beneficial for others stumbling upon this thread, donât you think?
WeChat is the most opaque, buggy and resource-hogging social media client on this planet. It is lackluster in terms of features but consumes more RAM, CPU and storage than all competitors combined. It uses your device as the file server â the only way for you to access your account history is to have everything stored locally, photos and even videos included. QQ, the earlier social media project by Tencent, was found to scan entire hard drives without the userâs consent. Many suspect WeChat is doing the same, although censorship makes it hard to talk about concrete evidence.
Rant aside, the advice: donât use WeChat for the sake of your own data privacy. Or at least, only ever use its File Helper in a web browser on your Mac, and do the rest of your work on a work phone.
This issue still persists even after two years. Coming back to this thread, Iâm shocked by the arrogance and hostility in this community. Your response does absolutely nothing to help solve the problemâwe are discussing ways to force providing files instead of URLs when dragging from DT to WeChat, yet youâre just telling people WeChat is trash and not to use it.
Yes, weâre all aware of WeChatâs shortcomings but for many adults using it is not even a choice. That being said, I think DT might lack the functionality to specify whether we want to drag the URL, extracted text, or the file itself when dragging into other apps, not limited to WeChat.
Is there a misunderstanding here? What I think to be arrogance and hostility is not the act of raising concerns, but @meowky advising others not to use WeChat because of WeChatâs compatibility with DT and other problems unrelated to the threadâs issue.
In terms of âweâ, I should clarify that WeChatâs flaws are widely recognized in the Chinese community. But in an international tech forum, it is indeed not appropriate to use âweâ. If that irritates you I apologize.
Yet I still donât see any actual solution to the issue itself. The only workaround so far is to reveal the file in Finder and then drag it from there.
Thank you, thatâs really helpful. I am wondering if itâs possible for users to create an AppleScript such as âCopy as Fileâ that only puts the file itself in the clipboard. Might be helpful when the receiving application is not smart enough.
Select File > Open Dictionary and browse for the WeChat app. If itâs listed, thereâs at least a minimal script dictionary. Iâd guess there isnât.
Have you tried sending via the Share menu? Again, I donât know if it supports it.
Lastly, it appears thereâs some sort of âfile transferâ option in a chat. If that opens a standard macOS Open dialog, just drag and drop a file directly from your database in DEVONthink into that window.
Iâve created an AppleScript that only copies the file into the clipboard, tested in WeChat and Telegram. Not working in iMessage though.
use framework "AppKit"
use scripting additions
set pb to current application's NSPasteboard's generalPasteboard()
tell application "DEVONthink 3"
set selectedItems to selection
if (count of selectedItems) is 0 then
display notification "No item selected." with title "DEVONthink"
return
end if
set fileURLs to {}
repeat with theItem in selectedItems
set thePath to path of theItem
if thePath is not missing value then
set end of fileURLs to (current application's |NSURL|'s fileURLWithPath:thePath)
end if
end repeat
if (count of fileURLs) > 0 then
pb's clearContents()
pb's writeObjects:fileURLs
display notification "File copied to clipboard" with title "DEVONthink"
else
display notification "No valid file found" with title "DEVONthink"
end if
end tell
I see your point. This information is useful for people unfamiliar with WeChat, and I initially overlooked that perspective. But for users like me who have no choice but to use it and want darg-and-drop to work as expected, this is the only thread I found. It is frustrating that instead of exploring a solution, this thread stalled in 2023, with the last response full of rants and simply advising me against WeChat.
It is frustrating that instead of exploring a solution, this thread stalled in 2023,
We just donât have many people using WeChat or interested in the topic.
Your script is interesting, but isnât it simpler to select a document and press Command-C to copy it? I verified this works in Appleâs Messages app.
Yes. Copying/pasting from DT to WeChat is not working. From my testing, if you paste a file from DT in WeChat, the inserted content follows this priority:
Extracted Text > Download URL > File Name
The actual file itself is never copied. Thatâs why I made an AppleScript for that. However, if you copy and paste from Finder, WeChat will recognize it as a file properly.
Well, WeChat has essentially monopolized the IM market in China. Unlike in many other countries where people have multiple messaging options, WeChat is overwhelmingly dominant here and has no real competitors (IM apps from non-Chinese companies are blocked, iMessage has a limited audience due to lower adaption of iPhones, Lark and DingDing exist but are limited to enterprise use). If you are Chinese, almost everyone around you (your friends, your clients, your co-workers, your boss) definitely has WeChat and also expects you to be on it. Itâs the de facto standard for social interaction, to the point where people no longer exchange phone numbers anymore, they just connect on WeChat.
I also feel bad that such engineeringly terrible software achieves this level of dominance. But you know, itâs similar to how email is indispensable in the workplace. You wouldnât expect a random person around you to use Matrix or XMPP, but they must have an email. Thatâs how WeChat is for most Chinese.